MQTT with Sensor Tag
This example shows how to use the SensorTag Bluetooth module (Texas Instruments CC2650) to send data to TagoIO. No code modification is required on the SensorTag itself; because the SensorTag is used with MQTT, only a configuration setup is necessary.
The SensorTag communicates with a mobile device over Bluetooth. Texas Instruments provides a mobile app that converts that Bluetooth communication into MQTT and forwards the data to the cloud over cellular or Wi‑Fi.
Connectivity Diagram
Learn more
Learn more about the SensorTag CC2650 and how to get started: SensorTag CC2650 and how to get started
What this example does
- All sensor data from the SensorTag will be posted to TagoIO.
- Sensor data can be visualized on a TagoIO dashboard in real time: dashboard.
- This example uses the hardware version tested by the authors.
Sensors included
The tested SensorTag hardware contains the following 10 sensors:
- Light
- Digital microphone
- Magnetic sensor
- Humidity
- Pressure
- Accelerometer
- Gyroscope
- Magnetometer
- Object temperature
- Ambient temperature
Notes and limitations
- There is no native way to control the SensorTag's LED or buzzer using MQTT's subscribe method.
- Only configuration is required on the TagoIO side to receive and process MQTT messages from the SensorTag (via the mobile app).