HTTP
Labeeb IoT supports pushing data through a HTTP POST request,which covers all applications and devices uses HTTP as a communication protocol and gives a wide range of supported devices and applications.
HTTP Overview
HTTP clients can use POST requests to push data to Labeeb IoT Platform as shown in the below figure:
HTTP POST request :
Use the following header options for your POST request :
header | value |
---|---|
URL | http://mea.labeeb-iot.com/iot-dcm/rest/PushServices/pushData |
Method | POST |
Content-Type | application/json |
HTTP Messages Format :
Use the following JSON object as your HTTP POST body :
Body format : |
---|
{ [ { [ } ] } |
Response Body :
Body format : |
---|
{ |
Status Code | Message | Description | Response Example |
---|---|---|---|
200 | Message sent | Data sent to Labeeb Platform | { "status": 200, "message": "Message sent" } |
200 | Error : <SOME FIELD> is missing | Data sent to Labeeb with a missing required field | { |
125 | Unexpected character .. | error in JSON structure | Unexpected character ('}' (code 125)): was expecting double-quote to start field name at [Source: org.apache.catalina.connector.CoyoteInputStream@6df0531c; line: 11, column: 8] |