TagoIO has its own MQTT broker, which is responsible for pushing data to clients whenever new information is published on the specific topics to which they are subscribed. Our MQTT broker doesn't contain all the implementations that a standard MQTT would have because its main goal is to facilitate the ingestion of data from sensors into our data buckets.
TagoIO's MQTT broker does not support the native Retain feature found in standard MQTT protocol implementations; however, we offer a workaround to achieve similar functionality. Read more here:
MQTT Retain on TagoIO Broker.
For instance, consider a system where a sensor sends temperature data to a topic each time it receives an update. In this scenario, devices that need to be notified when this data is available would subscribe to that topic. Once the temperature sensor has an update, it publishes the data to the topic, and the broker then takes on the responsibility of pushing this data to all the devices subscribed to that topic.
Security
Encryption across the network can be handled with SSL independently of the MQTT protocol itself. Additional security can also be added through application-encrypted data that is sent and received.
At TagoIO, you can send your data as encrypted directly to your Analysis, decrypt it there, and then insert the data into your Bucket. You can use this procedure to increase your security if your data is sensitive, or if you simply want to add an extra layer of security. Connection
To connect to our broker, please use the information provided below. Note that there is a limit on the number of connections, publications, and subscriptions you can make, enforced based on your account plan. For more information, read about Rate Limits (Hard Limits).
Host: mqtt.tago.io
TCP/IP port: 1883
TCP/IP port over SSL: 8883
Username: Token
Password: <Your_Device-Token> (Replace with your actual device token)
Client ID: Can be set to any unique identifier
If the
Device-token is removed from the device, or if it's deleted, it'll be disconnected from the MQTT broker.
Data flow at TagoIO
When you first send data through the MQTT to your device, you'll be able to visualize the connection and message through the Live Inspector on your device.
Those messages mean the connection is working, but nothing is being stored in your bucket yet. From this point, you'll need to create an Action with trigger MQTT and type Insert to Device Bucket.
In this case, the variable is "payload" and it has a value of "22". If you don't send the data using the TagoIO data format, you'll need to normalize your data and change it to the correct format.
To do that, check out our documentation on how to use a Payload Parser. More Resources
Here's a list of some additional documentation on MQTT resources: