Supported API
-
API REST (HTTP/HTTPS)
-
Based on HTTP GET, POST, PUT, DELETE requests
-
Anwers in JSON
-
Usable by any application with network access
Example:
-
-
API MQTT (Pub/Sub)
-
Based on MQTT (Message Queuing Telemetry Transport) protocol
-
Ideals for real time communications with a low bandwidth consumption
-
The device publishes data to a topic, and other clients can subscribe to receive it
-
Example:
-
Authentication and Security
APIs use authentication tokens to ensure security and controlled access.
Example of authentication with Bearer token:
Examples of Endpoint API REST
1. Get the latest device data
Answer JSON
2. Set a Threshold Alarm
Body JSON
3. Check Battery Status
Answer