Developer Guide
Integrate your hardware and custom applications with SensoCAN.
Communication Protocols
We support two primary methods for device connectivity:
- MQTT (Recommended): Best for persistent connections, low bandwidth, and real-time bi-directional communication.
- 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: Bearerheader.
Libraries & SDKs
While you can use any standard MQTT/HTTP client, we recommend:
- Python:
paho-mqtt - C/C++:
Eclipse Paho - Arduino/ESP32:
PubSubClient