MQTT Messages

Thingstream MQTT Now plans use the MQTT protocol to communicate and pass data and status between a device and the Thingstream broker.

Each MQTT message sent between a device and the broker uses a message from the plan allowance. The list of supported MQTT messages is found in the table below:

MQTT message types

  • CONNECT

  • CONNACK

  • PUBLISH QoS 0

  • PUBLISH QoS 1

  • PUBLISH QoS 2

  • PUBACK

  • PUBREC

  • PUBREL

  • PUBCOMP

  • SUBSCRIBE

  • SUBACK

  • UNSUBSCRIBE

  • UNSUBACK

  • PINGREQ

  • PINGRESP

  • DISCONNECT

For example, a device might wish to wake up periodically, connect to the broker, publish some data to a topic at quality of service 1 and then disconnect. This set of actions would consume 5 messages (CONNECT, CONNACK, PUBLISH, PUBACK and DISCONNECT) from the plan allowance. Messages will be billed on last byte sent from the server.

Still need help?

If you need more help or have any questions, please send an email to support@thingstream.io.