Connecting to Microsoft's Azure IoT Hub with TAIYO YUDEN's Bluetooth Low Energy Module
This project is maintained by TaiyoYudenUSA
The Gateway Application is comprised of 3 python files: deviceManager.py, d2cMsgSender.py and uartCentralGW.py.
Prerequisites:
Usage:
uartCentralGW.py <serial port>
<devicename>
serial port
: Serial port to use (e.g. COM8, use Windows Device Manager to determine port number)
devicename
: name of device (e.g. Sensor1) that will be added to the Hub
When launched, the Gateway Application will send the scan command to the BLE UART Central Device. The BLE UART Central Device will then scan for a Sensor that supports the Nordic UART Service. If it successfully connects with the Sensor, the Gateway Application will add the name of sensor to the Hub, create a MQTT Client, connect to the Hub, and then start sending temperature measurements to the Hub.