Skip to content

Sends sensor data from a MXChip AZ3166 IoT Devkit to a MQTT Broker

License

Notifications You must be signed in to change notification settings

SeanoNET/RoomTempDevice-MQTT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoomTempDevice-MQTT

Sends sensor data from a MXChip AZ3166 IoT Devkit to a MQTT Broker. A local/cheaper alternative to a cloud based solution RoomTempDevice-IoT

Getting Started

  • Run through Get started - IoT DevKit guide
    • Prepare your development environment
    • Provision your device using the Azure DPS
    • Load your IoT Hub Device Connection String
    • Git clone && Upload Device Code

Configuration

Description
send_interval The interval at which the device will send the payload to the MQTT broker.
setup_delay The delay the setup messages will be displayed on the screen.
mqtt_server The MQTT broker server IP.
username The MQTT broker server username.
password The MQTT broker server password.
port The MQTT broker server port.
topic The MQTT topic home/room/temp-mon/data.
client_id The MQTT device client id temp-mon.

Payload

An example of the MQTT message payload

{
	"temperature": 31.2999990000000,
	"humidity": 47.0000000000000
}

MQTT Broker

There are plenty of MQTT brokers to choose from. This example was implemented using Eclipse Mosquitto running in docker. For information on how to setup and configure the Mosquitto MQTT broker running in docker see eclipse-mosquitto or binary installation downloads

MQTT Consumer

To consume the data published to the broker and save it into Microsoft SQL Server see RoomTempMQTTConsumer

About

Sends sensor data from a MXChip AZ3166 IoT Devkit to a MQTT Broker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages