Submit Data to Anedya
POST/v1/submitData
Devices can submit the data to this endpoint. You need to specify the authentication mode you want to use to access APIs by setting Auth-mode
header.
MQTT Topic
$anedya/device/{deviceid}/submitdata/json
Request
- application/json
Body
- Array [
- MOD1
- MOD2
- ]
data object[]required
variable string
Variable identifier specified during variable creation
value object
Depending on the type of variable, value
can be a number or a JSON object. For example, for float
variables it will be number.
oneOf
lat number
Possible values: >= -90
and <= 90
Lattitude in Decimal Degrees
long number
Possible values: >= -180
and <= 180
Longitude in decimal degrees
number
timestamp integer
0
passed as timestamp value will be replaced by current timestamp during processing
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
success boolean
error string
errcode integer
{
"success": true,
"error": "string",
"errcode": 0
}
Loading...