Skip to content

Commit d9ba1cf

Browse files
unknownunknown
authored andcommitted
iamge
1 parent 4babfd0 commit d9ba1cf

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

datapoint/create.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The body construct should be in JSON format with the following fields:
2929

3030
|Field Name|Mandatory|Type|Description|
3131
| --- | --- | --- | --- |
32-
| type | Yes | String | Sensor Type, set to one of the following: "Time-Value", "Switch", "Key-Value", "GPS" |
32+
| time | No | String | Timestamp in unix-time format to milliseconds |
3333
| content | Yes | json | | |
3434

3535

@@ -45,7 +45,6 @@ Request Body
4545
For Time-Value datapoint example:
4646
```
4747
{
48-
"type" : "Time-Value",
4948
"time": "1409714629628",
5049
"content": {
5150
"value": 20.3
@@ -56,33 +55,29 @@ For Time-Value datapoint example:
5655
For GPS datapoint example:
5756
```
5857
{
59-
"type" : "GPS",
6058
"time": "1409714629628",
6159
"content": {
6260
"latitude": 25.015228750967108,
6361
"longtitude": 121.50960445404053
64-
6562
}
6663
}
6764
```
6865
For Switch datapoint example:
6966
```
7067
{
71-
"type": "Switch",
7268
"time": "1409714629628",
7369
"content": {
7470
"status": "on"
7571
}
7672
}
7773
```
78-
Please note, for "Time-Value", "GPS" and "Switch" datapoint, "time" is in unix-time format the milliseconds and is optional. If not provided, system will generate timestamp at the time of receiving this API call.
74+
Please note, for "Time-Value", "GPS" and "Switch" datapoint, "time" is in unix-time format to milliseconds and is optional. If not provided, system will generate timestamp at the time of receiving this API call.
7975

8076

8177
For Key-Value datapoint example:
8278

8379
```
8480
{
85-
"type": "Key-Value",
8681
"content": {
8782
"key": "car_model",
8883
"value": "Ford"

datapoint/multicreate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,22 @@ For placing 4 sensor datapoint in one API example:
4747
[
4848
{
4949
"sensorId": "1000000026",
50+
"time": 1409714629628,
5051
"content": {
51-
"time": 1409714629628,
5252
"value": 20.3
5353
}
5454
},
5555
{
5656
"sensorId": "1000000023",
57+
"time": 1409714629628,
5758
"content": {
58-
"time": 1409714629628,
5959
"status": "on"
6060
}
6161
},
6262
{
6363
"sensorId": "1000000024",
64+
"time": 1409714629628,
6465
"content": {
65-
"time": 1409714629628,
6666
"latitude": 25.015228750967,
6767
"longtitude": 121.50960445404
6868
}

0 commit comments

Comments
 (0)