MQTT Infrastructure

In order to communicate with BioT, the device should initiate a MQTT (standard for IoT messaging) connection.

Set Up the MQTT Infrastructure

The communication protocol with BioT for device management is MQTT. Using MQTT, a bidirectional communication channel is created and used for:

  • Downloading configuration settings from the cloud to the device.
  • Reporting status information of the device to BioT.
  • Sending measurements to BioT.
  • Receiving commands from BioT (e.g. Reboot).
  • More transmissions of relatively small packets of data.

The protocol utilizes a publish-subscribe mechanism for bidirectional communication.
To get inputs from the cloud, the device subscribes to topics and gets notified once a message is published to these topics by BioT. Similarly, the device is able to publish messages to topics that BioT subscribes to.

To use MQTT, your embedded software may use any MQTT client library, but it is recommended to use the AWS IoT Device SDK, which provides additional features that would otherwise need to be custom-implemented. AWS provides C++, Java, Python & JS SDKs to fit the majority of device developers. Each SDK is open source and has sample code demonstrating how to connect to AWS IoT.

When you initiate the AWS SDK, you will be required to supply the certificates that were obtained during device setup.

Testing MQTT Communication

If you are new to MQTT we recommend using the MQTTX simulator, before going to actual implementation.
Continue reading here.
If you are experienced with MQTT you may skip this part and go to direct device connection.