thethings.iO Developer Center

Here you'll find everything you need to get started or go deep on developing IoT Products, Applications and Services with the thethings.iO IoT Platform.

Protocols

This section describes the different protocols that you can use to connect your Devices and Apps to the Platform.

You can connect your devcies using any of the 3 protocols compatible with thethings.iO (HTTP, CoAP, MQTT). Each of them has its pros and cons.

Choosing the protocol for your things

HTTP
HTTP is over TCP and there are lots of libraries implementing it. If there isn't a language for your platform, it is very easy to implement as it is just writing characters on the TCP socket. However, it is the protocol that introduces more overhead.

CoAP
CoAP is over UDP, designed especially for IoT and introduces minimum overhead. While we don't support CoAP with DTLS yet, contact us if you need the feature.

MQTT
MQTT is over TCP and is best suited for long term subscriptions. MQTT is also lighter than HTTP, but it's not possible to reproduce all the features supported by the other protocols (like reads) with it.

Protocol
Pros
Cons

HTTP

  • Lots of libraries
  • Energy consuming

MQTT

  • Best for pub/sub
  • IoT friendly
  • Reads not supported

CoAP

  • Light
  • IoT friendly
  • SSL not supported (yet)

Protocols

This section describes the different protocols that you can use to connect your Devices and Apps to the Platform.