Skip to main content

Developer Guide

Integrate your hardware and custom applications with SensoCAN.

Communication Protocols

We support two primary methods for device connectivity:

  1. MQTT (Recommended): Best for persistent connections, low bandwidth, and real-time bi-directional communication.
  2. HTTP API: Best for simple, stateless devices or when MQTT is blocked by firewalls.

Authentication

Both protocols utilize Device Access Tokens for security. This token is generated when you create a device in the UI.

  • MQTT: Use the MQTT credentials provided in the device details page.
  • HTTP: Use the token in the Authorization: Bearer header.

Libraries & SDKs

While you can use any standard MQTT/HTTP client, we recommend:

  • Python: paho-mqtt
  • C/C++: Eclipse Paho
  • Arduino/ESP32: PubSubClient