Using HTTP
By using a HTTP/HTTPS Transport in this chapter, we describe the send stream from device to the platform.
If you send stream by REST,refer Stream service
Send stream from device
HTTP/HTTPS Endpoint
URI | HTTP Method | API version |
---|---|---|
| POST | 1.x |
| POST | 2.x |
Parameters
About RateLimiting
If you want to use the device connector in HTTP / HTTPS, rate limit (flow control) mechanism will be applied.
Currently, it is limited to a single data transmission per second.
HTTPS / HTTPS device connectors are available for devices that can not use the MQTT.
We strongly recommend the use of MQTT device connector.
(API v2.x)curl example
curl -X POST -v -H "X-DEVICETOKEN: DEVICE_TOKEN_HERE" -H "X-DEVICEID: DEVICE_ID_HERE" -H "Content-Type: application/json" -d '{"temp":25}' -k https://m.thingscale.io/post_v2/
© 2014-2022 SENSINICS,LLC