Edgelink RESTful API Specification_v2.0
Edgelink RESTful API Specification_v2.0
Edgelink Open
RESTful API
Specification
For Edgelink RESTful Web Service
An.Xin
2023-4-21
RECORD OF CHANGES
Version Date Chapter Description Reviser
1.0 2015-1-14 Initial Version. An Xin
1.1 2015-6-01 Ver.1.1 An Xin
1.2 2015-9-21 Ver.1.2 An Xin
1.3 2016-11-18 Ver.1.3 An Xin
1.4 2017-08-23 Ver1.4 An.Xin
1.5 2018-04-23 Ver1.5 An.Xin
1.6 2018-11-30 Ver1.6 An.Xin
1.7 2019-12-30 New Add: Ver1.7 An.Xin
2.9: Data Logger
2.0 2022-12-05 New Add: Ver2.0 An.Xin
2.8.4: Tag Search
2.11.6: Recover to default
2.13.2: Lan Configuration
2.13.3: Wlan Configuration
2.13.4: Cellular Configuration
2.13.5: GPS Configuration
1.2 GET
The GET method means retreive whatever information (in the form of an entity) is identified by the
Request-URI. If the Request-URI refers to a data-producing process, it is the produced data which
shall be returned as the entity in the response and not the source text of the process, unless that text
happens to be the output of the process.
1.3 PUT
PUT can be used when the client is sending data to the the server and the client is determining the
URI for the newly created resource.
The PUT method requests that the enclosed entity be stored under the supplied Request-URI.
If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be
considered as a modified version of the one residing on the origin server. If the Request-URI
does not point to an existing resource, and that URI is capable of being defined as a new
resource by the requesting user agent, the origin server can create the resource with that URI.
1.4 PATCH
RFC5786 defines the new HTTP/1.1 [RFC2616] method, PATCH, which is used to apply partial
modifications to a resource.
PATCH can be used when the client is sending one or more changes to be applied by the the server.
The PATCH method requests that a set of changes described in the request entity be applied to
the resource identified by the Request-URI. The set of changes is represented in a format called
a "patch document"...
The point is that PATCH is used to doing some kind of 'partial' update.
1.5 POST
POST can be used when the client is sending data to the server and the server will decide the URI
for the newly created resource.
"The POST method is used to request that the origin server accept the entity enclosed in the
request as a new subordinate of the resource identified by the Request-URI in the Request-
Line."
This is what most of us think of when we talk about "creating data" on a web server.
Safe? Idempotent?
GET Y Y
POST N N
PATCH N N
PUT N Y
DELETE N Y
- 2xx: Success - The action was successfully received, understood, and accepted
- 3xx: Redirection - Further action must be taken in order to complete the request
- 4xx: Client Error - The request contains bad syntax or cannot be fulfilled
- 5xx: Server Error - The server failed to fulfill an apparently valid request
The status codes supported by ADAM web server are described below.
Status-Code Reason-Phrase Conditions
The request succeeded, and that the requested
200 OK information is in the response.
This is the most common status code to receive.
The request could not be understood by the server due to
malformed syntax.
⚫ The value in Content-length header does not
400 Bad Request
match with the real data length.
⚫ Invalid JOSN objects or format.
⚫ Invalid multipart contents.
The server refuses to fulfill the request due to
403 Forbidden
authentication error, such as invalid cookie.
The requested resource (URI) does not exist on the
404 Not Found
server.
Method Not The request method (POST or GET) is not allowed on
405
Allowed the requested resource.
411 Length Required The required Content-length header is missing.
Memory access errors occurred on the server when
Internal Server processed the file uploaded by client.
500
Error Fail to reply the JSON-format message due to out of
buffer size, or others.
Service The login list is full.
503
Unavailable
2 Web Service API Definition
2.1 URLOverview
HTTP Methods
URI Description Applicable
GET PUT PATCH POST
/ data The entry URI for user’s HTML
/sys/log_in Log in for update data
/sys/log_out Log out
/sys/version Get all versions on device
Get upload file total size and total
/sys/file_verify
count, and each file size and file name
/sys/upload Upload files for update
/sys/update Firmware update
/sys/update_info Get info in the process of update
Note: *1. All method (GET/ PUT/POST/PATCH) must be used with cookie, seen in 2.10.1 Log in chapter.
*2. All HTTP requests need including ‘Referer’ in HTTP Header, the value of ‘Referer’ should be IP address for request.
2.2 Device Information
/data/device_info/slot_index
Description Retrieves the device information including the I/O module slots.
URL Structure https://{ip address}/data/device_info
https://{ip address}/data/device_info /slot_index
where index = 0: the on-board module
1 ~: the identifier of I/O extension slot
HTTP Method GET:Returns the representation of all I/O module slots information resource.
PATCH: Set date/time/timezone.
GET Multi Slot Request:
GET / data/device_info
Single Slot Request:
GET / data/device_info /slot_index
[Example]:
⚫ Request: GET / data/device_info
Content-type: application/json
Response: 200 OK
{
"slot_0": {
"SL": 0,
"Id": "ADAM-3600-C2GL1A1E",
"DIn": 8,
"DOn": 4,
"AIn": 8,
"AOn": 0,
"FwVer": "01010168",
"Tm": "2016-04-07T03:34:36+08:00",
"Tz": "/Asia/Shanghai"
},
"slot_1": {
"SL": 1,
"Id": "ADAM-3617",
"DIn": 0,
"DOn": 0,
"AIn": 4,
"AOn": 0,
"FwVer": "01010170"
},
"slot_2": {
"SL": 2,
"Id": "ADAM-3618",
"DIn": 0,
"DOn": 0,
"AIn": 4,
"AOn": 0,
"FwVer": "01010173"
},
"slot_4": {
"SL": 4,
"Id": "ADAM-3624",
"DIn": 0,
"DOn": 0,
"AIn": 0,
"AOn": 4,
"FwVer": "01010176"
}
}
Content-type: application/json
Response: 200 OK
{
"SL": 0,
"Id": "ADAM-3600-C2GL1A1E",
"DIn": 8,
"DOn": 4,
"AIn": 8,
"AOn": 0,
"FwVer": "01010168",
"Tm": "2016-04-07T03:38:29+08:00",
"Tz": "/Asia/Shanghai"
}
PUT None
POST None
PATCH Request:PATCH /data/device_info/slot_0
[Example]:
⚫ Request: PATCH /data/device_info/slot_0, configure time/date/time zone.
Content-type: application/json
{
"Tm": "2016-04-07T03:38:29+08:00",
"Tz": "/Asia/Shanghai"
}
Response: 200 OK
For example,
“1994-11-05T08:15:30-05:00” corresponds to
November 5, 1994, 8:15:30 am, US Eastern Standard
Time.
Time zone Tz String RW Note: Only for slot_0 (on board device)
/Asia/Shanghai.
Remarks
2.3 Device Control
/sys/control
2.3.1 Restart
/sys/control/rst
[Example]:
⚫ Request: PATCH /sys/control, Restart the module.
Content-type: application/json
{
"Rst":"1"
}
Response: 200 OK
Remarks
2.3.2 Calibration
/sys/control/cali
[Example]:
⚫ Request: PATCH /sys/control/cali, calibrate the AI/AO module.
Content-type: application/json
{
"Mid":"1",
"Cid":"1",
"Rng":"1",
"Calmd ":"1",
"Iot ":"1",
}
Response: 200 OK
3 V_Neg2pt5To2pt5
7 V_0To10
33 mA_0To20
34 mA_4To20
0x8028 Btype_200To1820C
0x8020 Etype_Neg270To1000C
0x801D Jtype_Neg210To1200C
0x801E Ktype_Neg270To1372C
0x8029 Ntype_Neg100To100C
0x8025 Rtype_0To1768C
0x8026 Stype_0To1768C
0x801F Ttype_Neg270To400C
Calibration Calmd String W Calibration mode
mode 1 SaveCaliValToFlash
1 AoSaveCaliValToFlash
3 WriteFacCaliValToUser
0x5500 ZeroCalibration
0xAA00 SpanCalibration
0x55 AoOutputSpanValue
0xAA AoCalibreateSpanValue
IO type Iot String W Range code
0 AI
1 AO
Remarks
2.4 Analog Input
/data/ai_value/slot_index/ch_num
Description Retrieves information about the analog input value resource on specific slot.
URL https://{ip address}/data/ai_value/slot_index
Structure https://{ip address}/data/ai_value/slot_index/ch_num
where index = 0: the core module
1 ~ n: the identifier of I/O extension slot
where num = 0 ~ n: the channel number
HTTP GET:Returns the representation of all analog input value resource.
Method PUT:None
PATCH:Apply partial modifications to analog input value resource.
GET Multi-Channel Request:
GET /data/ai_value/slot_index
Single Channel Request:
GET /data/ai_value/slot_index/ch_num
[Example]:
⚫ Request: GET /data/ai_value/slot_0
Content-type: application/json
Response: 200 OK
{
"AIVal": [
{
"Ch":0,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA": 0,
"HiA": 0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
},
{
"Ch":1,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA":0,
"HiA":0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
},
{
"Ch":2,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA":0,
"HiA":0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
},
{
"Ch":3,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA":0,
"HiA":0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
},
{
"Ch":4,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA":0,
"HiA":0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
}
]
}
Content-type: application/json
Response: 200 OK
{
"Ch":2,
"En":0,
"Rng":1,
"Val":32765,
"Eg":0,
"Evt":0,
"LoA":0,
"HiA":0,
"HVal":0,
"HEg":0,
"LVal":0,
"LEg":0,
"SVal":0,
"ClrH": 0,
"ClrL": 0
}
PUT Single Channel Request:
PUT /data/ai_value/slot_index/ch_num
[Example]:
⚫ Request: PUT /data/ai_value/slot_0/ch_3
Content-type: application/json
{
"Rng":"1"
}
Response: 200 OK
POST None
PATCH None
⚫ JSON array name definition:
Field Abbreviation Data Type
Array of Analog input configurations AIVal Array
/data/ao_value/slot_index/ch_num
Description Retrieves information about the analog input value resource on specific slot.
URL Structure https://{ip address}/data/ao_value/slot_index
https://{ip address}/data/ao_value/slot_index/ch_num
where index = 0: the core module
1 ~ n: the identifier of I/O extension slot
where num = 0 ~ n: the channel number
HTTP Method GET:Returns the representation of all analog output value resource.
PUT:None
PATCH:Apply partial modifications to analog input value resource.
GET Multi-Channel Request:
GET /data/ao_value/slot_index
Single Channel Request:
GET /data/ao_value/slot_index/ch_num
[Example]:
⚫ Request: GET /data/ao_value/slot_0
Content-type: application/json
Response: 200 OK
{
"AIVal": [
{
"Ch":0,
"Rng":1,
"Val":148,
},
{
"Ch":1,
"Rng":1,
"Val":0,
},
{
"Ch":2,
"Rng":1,
"Val":0,
},
{
"Ch":3,
"Rng":1,
"Val":0,
}
]
}
Content-type: application/json
Response: 200 OK
{
"Ch":2,
"Rng":328,
"Val":0,
}
PUT Single Channel Request:
PUT /data/ao_value/slot_index/ch_num
[Example]:
⚫ Request: PUT /data/ao_value/slot_0/ch_3
Content-type: application/json
{
"Rng":"1",
}
{
"Val": "65535",
}
Response: 200 OK
POST None
PATCH None
⚫ JSON array name definition:
Field Abbreviation Data Type
Array of Analog input configurations AOVal Array
Remarks
2.6 Digital input
/data/di_value/slot_index/ch_num
Description Retrieves information about the digital input value resource on specific slot.
URL https://{ip address}/data/di_value/slot_index
Structure https://{ip address}/ data/di_value/slot_index/ch_num
where index = 0: the core module
1 ~: the identifier of I/O extension slot
where num = 0 ~: the channel number
HTTP GET:Returns the representation of all digital input value resource.
Method PUT:Replace all digital input value resource
PATCH:Apply partial modifications to digital input value resource.
[Example]:
⚫ Request: GET /data/di_value/slot_0
Content-type: application/json
Response: 200 OK
{
"DIVal": [
{
"Ch":0,
"Md":0,
"Stat":1,
"Val":1,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
},
{
"Ch":1,
"Md":0,
"Stat":0,
"Val":0,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
},
{
"Ch":2,
"Md":0,
"Stat":0,
"Val":0,
"Cnting":1,
"ClrCnt":0,
"OvLch": 0
},
{
"Ch":3,
"Md":0,
"Stat":0,
"Val":1,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
}
]
}
Content-type: application/json
Response: 200 OK
{
"Ch":2,
"Md":0,
"Stat":1,
"Val":1,
"Cnting":0,
"ClrCnt":0,
"OvLch": 0
}
Remarks *:Unused in Edgelink devices, just keep consistent with other products.
2.7 Digital output
/data/do_value/slot_index/ch_num
Description Retrieves information about the digital input value resource on specific slot.
URL https://{ip address}/data/do_value/slot_index
Structure https://{ip address}/data/do_value/slot_index/ch_num
where index = 0: the core module
1 ~n: the identifier of I/O extension slot
where num = 0 ~n: the channel number
HTTP GET:Returns the representation of all digital output value resource.
Method PUT:Replace all digital output value resource
PATCH:Apply partial modifications to digital output value resource.
GET Multi-Channel Request:
GET /data/do_value/slot_index
Single Channel Request:
GET /data/do_value/slot_index/ch_num
[Example]:
⚫ Request: GET /data/do_value/slot_0
Content-type: application/json
Response: 200 OK
{
"DOVal": [
{
"Ch":0,
"Md":0,
"Stat":1,
"Val":1,
"PsCtn":0,
"PsStop":0,
"PsLo": 5000,
"PsHi": 5000,
"PsIV": 0
},
{
"Ch":1,
"Md":0,
"Stat":0,
"Val":0,
"PsCtn":0,
"PsStop":0,
"PsLo": 5000,
"PsHi": 5000,
"PsIV": 0
},
{
"Ch":2,
"Md":0,
"Stat":0,
"Val":0,
"PsCtn":0,
"PsStop":0,
"PsLo": 5000,
"PsHi": 5000,
"PsIV": 0
},
{
"Ch":3,
"Md":0,
"Stat":0,
"Val":1,
"PsCtn":0,
"PsStop":0,
"PsLo": 5000,
"PsHi": 5000,
"PsIV": 0
}
]
}
Content-type: application/json
Response: 200 OK
{
"Ch":2,
"Md":0,
"Stat":1,
"Val":1,
"PsCtn":0,
"PsStop":0,
"PsLo": 5000,
"PsHi": 5000,
"PsIV": 0
}
PUT Single Channel Request:
PUT /data/do_value/slot_index/ch_num
[Example]:
⚫ Request: PUT /data/do_value/slot_0/ch_2
Content-type: application/json
{
"Md":"0",
}
Response: 200 OK
{
"Val":"0",
}
Response: 200 OK
POST None
PATCH None
Signal Logic Status Stat Number R 1, 0: Output signal is Logic High or Low.
Channel Value Val Number RW DO measurement data
/data/tags
Description Retrieves information about the system tag resource on edgelink device.
URL Structure https://{ip address}/data/tags
HTTP Method GET:Returns the representation of all of tags resources include value, quality, and
timestamp
GET Multi-Tag Request:
GET / data/tags
[Example]:
⚫ Request: GET /data/tags
Content-type: application/json
Response: 200 OK
{
"#SYS_UPTIME": {
"name": "#SYS_UPTIME",
"type": "System Tag",
"value": "298",
"quality": "0000H",
"timestamp": "1670204923.768992",
"readwrite": "1"
},
"#SYS_CURRENT_TIME": {
"name": "#SYS_CURRENT_TIME",
"type": "System Tag",
"value": "1670204923",
"quality": "0000H",
"timestamp": "1670204923.769002",
"readwrite": "1"
},
"#SYS_CPU_FREQ": {
"name": "#SYS_CPU_FREQ",
"type": "System Tag",
"value": "597600000",
"quality": "0000H",
"timestamp": "1670204689.725974",
"readwrite": "1"
},
"#SYS_MEM_SIZE": {
"name": "#SYS_MEM_SIZE",
"type": "System Tag",
"value": "242.68 MB",
"quality": "0000H",
"timestamp": "1670204689.726412",
"readwrite": "1"
},
"#SYS_CPU_USED": {
"name": "#SYS_CPU_USED",
"type": "System Tag",
"value": "8.01%",
"quality": "0000H",
"timestamp": "1670204923.811514",
"readwrite": "1"
},
"#SYS_CPU_IOWAIT": {
"name": "#SYS_CPU_IOWAIT",
"type": "System Tag",
"value": "0.01%",
"quality": "0000H",
"timestamp": "1670204861.001783",
"readwrite": "1"
},
"#SYS_MEM_USED": {
"name": "#SYS_MEM_USED",
"type": "System Tag",
"value": "17.41%",
"quality": "0000H",
"timestamp": "1670204923.811745",
"readwrite": "1"
},
"#SYS_SYSCARD_CAPACITY": {
"name": "#SYS_SYSCARD_CAPACITY",
"type": "System Tag",
"value": "908.00 MB",
"quality": "0000H",
"timestamp": "1670204689.727537",
"readwrite": "1"
},
"#SYS_SYSCARD_FREE_SPACE": {
"name": "#SYS_SYSCARD_FREE_SPACE",
"type": "System Tag",
"value": "204.84 MB",
"quality": "0000H",
"timestamp": "1670204689.727581",
"readwrite": "1"
},
"#SYS_DATACARD_CAPACITY": {
"name": "#SYS_DATACARD_CAPACITY",
"type": "System Tag",
"value": "0.00 Bytes",
"quality": "8004H",
"timestamp": "1670204689.727635",
"readwrite": "1"
},
"#SYS_DATACARD_FREE_SPACE": {
"name": "#SYS_DATACARD_FREE_SPACE",
"type": "System Tag",
"value": "0.00 Bytes",
"quality": "8004H",
"timestamp": "1670204689.727664",
"readwrite": "1"
},
"#SYS_NODE_ID": {
"name": "#SYS_NODE_ID",
"type": "System Tag",
"value": "161",
"quality": "0000H",
"timestamp": "1670204689.734325",
"readwrite": "1"
},
……
}
PUT /data/tags
[Example]:
⚫ Request: PUT /data/tags
Content-type: application/json
{
"digits": 2,
}
Response: 200 OK
POST None
PATCH None
Note
/data/tags?systag
/data/tags?iotag
/data/tags?usertag
/data/tags?calctag
/data/tags/{tag_name}/name
/data/tags/{tag_name}/type
/data/tags/{tag_name}/value
/data/tags/{tag_name}/quality
/data/tags/{tag_name}/timestamp
/data/tags/{tag_name}/readwrite
HTTP Method GET:Returns the representation of all io tag, user tag or calc tag resources
include value, quality, and timestamp
GET Multi-Tag Request:
GET / data/tags?systag
GET / data/tags?iotag
GET / data/tags?usertag
GET / data/tags?calctag
}
⚫ Request: GET /data/tags/BoardIO:AI_0/
Content-type: application/json
Response: 200 OK
{
"name": "BoardIO:AI_0",
"type": "IO Tag",
"value": "-10.0000",
"quality": "0000H",
"timestamp": "1670206722.563118",
"readwrite": "1"
}
⚫ Request: GET /data/tags/%23SYS_UPTIME
Content-type: application/json
Response: 200 OK
{
"name": "#SYS_UPTIME",
"type": "System Tag",
"value": "640",
"quality": "0000H",
"timestamp": "1670205265.254424",
"readwrite": "1"
}
Response: 200 OK
POST None
PATCH None
⚫ Resource value definitions:
Abbreviati Data Propert
Field Description
on Type y
value value String RW Tag value
type type Strin R Tag type:
g System Tag
IO Tag
User Tag
Calc Tag
quality quality String R Tag quality.
0000H OK
0001H QLTY_OVER_RANGE
0002H QLTY_UNDER_RANGE
0003H QLTY_OPEN_LOOP
0004H QLTY_SHORTED_LOOP
8001H QLTY_RESTART
8002H QLTY_DRIVER_LOAD_FAILED
8003H QLTY_PORT_OPEN_FAILED
8004H QLTY_DEVICE_ERROR
8005H QLTY_CONVERSION_CODE_ERROR
8006H QLTY_CONVERSION_ERROR
8007H QLTY_DATA_TYPE_ERROR
8008H QLTY_DATA_SIZE_ERROR
8009H QLTY_DATA_ERROR
800aH QLTY_CHECKSUM_ERROR
800bH QLTY_MSG_SEQ_ERROR
8080H QLTY_NO_OWNER
8081H QLTY_DISCONNECTED
8100H QLTY_DRIVER_SEPCIFIED
readwrite readwrite String R Tag Property: 1: read only, 3: read-write
timestamp timestamp String R Tag timestamp
Remarks For [#] mark: Some time use %23 instead of escape character #.
/data/tags?{query string}
[Example]:
⚫ Request: GET /data/tags?_count=total
Content-type: application/json
Response: 200 OK
{
99
}
PUT None
POST None
PATCH None
Note
⚫ Resource value definitions:
Data
Field Abbreviation Property Description
Type
Tag value value String R Tag value
Tag type type String R Tag type:
System Tag
IO Tag
User Tag
Calc Tag
Tag quality String R Tag quality.
quality 0000H OK
0001H QLTY_OVER_RANGE
0002H QLTY_UNDER_RANGE
0003H QLTY_OPEN_LOOP
0004H QLTY_SHORTED_LOOP
8001H QLTY_RESTART
8002H QLTY_DRIVER_LOAD_FAILED
8003H QLTY_PORT_OPEN_FAILED
8004H QLTY_DEVICE_ERROR
8005H QLTY_CONVERSION_CODE_ERROR
8006H QLTY_CONVERSION_ERROR
8007H QLTY_DATA_TYPE_ERROR
8008H QLTY_DATA_SIZE_ERROR
8009H QLTY_DATA_ERROR
800aH QLTY_CHECKSUM_ERROR
800bH QLTY_MSG_SEQ_ERROR
8080H QLTY_NO_OWNER
8081H QLTY_DISCONNECTED
8100H QLTY_DRIVER_SEPCIFIED
Tag timestamp String R Tag timestamp
timestamp
Tag readwrite String R Tag Property: 1: read only, 3: read -write
readwrite
property
Tag value digits Number W The number of significant digits after the decimal
digits point.
Range: 0~16.
⚫ Query fields definitions:
Field Abbreviation Data Type Description
Tag list taglist String Tag list
Select item select String Get tag name.
select=name
Version _v2 String Return tag information in json array
array
Io tag [1] iotag String All io tags
Sys tag [2] systag String All system tags
User tag [2] usertag String All user tags
Calc tag [2] calctag Number All calc tags
name [3] name String Search tags according to the tag name’s part of the
name or whole of the name.
Support:
1) whole name search;
2) case sensitive search;
3) regex search
Page number _page_no String Set the page number of the select tags, use with
[4]
_page_size
Page size [4] _page_size String Set the tags numbers in one page, use with _page_no
Port number _port_dev String Search according to the port name and the device
and device name. For io tags only.
number [5] E.g.: 0_1 means port 0, device 1; 1 means all devices
on port 1.
Tag count _count String Returns tag counts according to the query conditions.
_count=total
Case _case String Case sensitive when searching tags.
sensitive* _case=0: no case sensitive
_case=1: case sensitive
Whole word _whole String Whole word search.
search* _while=0: no whole word search
_while=1: whole word search
Regex _regex String Regex search.
search* _regex=0: no regex search
_regex=1: regex search
Sort order* _order_by String Sort order.
_order_by=asc: ascend order
_order_by=desc: descend order
Remark *: The fields marked with [*] can be used with each other and the fields marked [1],
[2], [3], [4] and [5]. The fields cannot be used alone.
[3]: The field can be used with the fields marked [1], [2], [4] and [5].
[5]: The field should be used with field marked [1].
/data/daq
[Example]:
⚫ Request: GET /data/daq
Content-type: application/json
Response: 200 OK
{
"Port": [
{
"name": "ADAM-3600-C2GL1A1E",
"enable": "true",
"portNbr": 0,
"Device": [
{
"name": "BoardIO",
"deviceIndex": 0,
"IOTag": [
"BoardIO:AI_0",
"BoardIO:AI_1",
"BoardIO:AI_2",
"BoardIO:AI_3",
"BoardIO:AI_4",
"BoardIO:AI_5",
"BoardIO:AI_6",
"BoardIO:AI_7",
"BoardIO:DI_0",
"BoardIO:DI_1",
"BoardIO:DI_2",
"BoardIO:DI_3",
"BoardIO:DI_4",
"BoardIO:DI_5",
"BoardIO:DI_6",
"BoardIO:DI_7",
"BoardIO:DO_0",
"BoardIO:DO_1",
"BoardIO:DO_2",
"BoardIO:DO_3"
]
}
]
},
{
"name": "COM1",
"enable": "false",
"portNbr": 1
},
{
"name": "COM2",
"enable": "false",
"portNbr": 2
},
{
"name": "COM3",
"enable": "true",
"portNbr": 3,
"Device": [
{
"name": "ModbusRTU1",
"deviceIndex": 0,
"IOTag": [
"ModbusRTU1:RTU1",
"ModbusRTU1:RTU2",
"ModbusRTU1:RTU3"
]
},
{
"name": "ModbusRTU2",
"deviceIndex": 1,
"IOTag": [
"ModbusRTU2:RTU21",
"ModbusRTU2:RTU22",
"ModbusRTU2:RTU23",
"ModbusRTU2:RTU24"
]
}
]
},
{
"name": "TCP",
"enable": "true",
"portNbr": 4,
"Device": [
{
"name": "ModbusTCP",
"deviceIndex": 0,
"IOTag": [
"ModbusTCP:TCP1",
"ModbusTCP:TCP2",
"ModbusTCP:TCP3"
]
},
{
"name": "DNP3",
"deviceIndex": 1,
"IOTag": [
"DNP3:DNP1",
"DNP3:DNP2"
]
},
{
"name": "OPCUA",
"deviceIndex": 2,
"IOTag": [
"OPCUA:opcua1",
"OPCUA:opcua2"
]
}
]
}
]
}
PUT None
POST None
PATCH None
Note
/data/datalogger/tagname
[Example]:
⚫ Request: GET / data/ datalogger/{tagname}
Content-type: application/json
Response: 200 OK
{
"datalogger_tagname": [
"#SYS_CPU_USED",
"#SYS_TFCARD_CAPACITY",
"#SYS_NODE_ID",
"#SYS_LAN_COUNT",
"#SYS_UPTIME",
"#SYS_MAC_LAN1",
"#SYS_MAC_LAN2",
"#MOBILE_MPN",
"#GPS_LATITUDE",
]
}
PUT None
POST None
PATCH None
Remarks
/data/datalogger
/data/datalogger/{TaskID}
Description Start to query all records of the selected tag in data logger.
URL https://{ip address}/data/datalogger
Structure
POST:Returns the time stamp of the beginning point of the query.
GET None
PUT None
POST Request:POST / data/datalogger
Content-type: application/json
Response: 200 OK
If the query is not finished,
{
"status": "querying",
"timestamp": "xxxxxxx",
"count": "4",
}
If the query is timeout
{
"taskid":"xxx",
"status":"timeout",
"records": [
{
"timestamp": "1523424600",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424720",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424900",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424960",
"quality": "-32640",
"partial": "0",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523425020",
"quality": "-32640",
"partial": "0",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
}
],
"count": "5"
}
If the query is completed
{
"taskid":"xxx",
"status":"finish",
"records": [
{
"timestamp": "1523424600",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424720",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424900",
"quality": "-32640",
"partial": "1",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523424960",
"quality": "-32640",
"partial": "0",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
},
{
"timestamp": "1523425020",
"quality": "-32640",
"partial": "0",
"last": "0.0000",
"min": "0.0000",
"max": "0.0000",
"avg": "0.0000"
}
],
"count": "5"
}
[Example]: Query Historical data
⚫ Request: GET
/ data/ datalogger/0
{
"taskid":"xxx",
"status":"finish",
"records": [
{
"timestamp": "1523424652.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424653.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424654.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424655.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424656.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424657.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424658.0000",
"value": "0.0000",
"quality": "-32640"
},
{
"timestamp": "1523424659.0000",
"value": "0.0000",
"quality": "-32640"
}
],
"count": "8"
}
PUT None
POST Request:POST / data/datalogger/0
PATCH None
2.10.1 Log in
/sys/log_in
Response:
{
"sesion_id": "c9f4baf91d3e4ed7cfb18e598c5711f5",
}
[Example]:
⚫ Request: PUT /sys/log_in?timeout=xxxx
Content-type: application/json
{
"password":"00000000"
}
Response:
{
"sesion_id":"c9f4baf91d3e4ed7cfb18e598c5711f5"
}
POST None
PATCH None
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
password password String RW User password
Session index session_id String R Session index for cookies
⚫ Query param definitions:
Field Abbreviation Data Type Property Description
Timeout timeout String W Set timeout for current
login session.
xxxx:timeout value.
unit: second.
If timeout value is zero,
then the session will never
timeout util the logout
operation is happened.
Remarks Session_id will be used in cookie for GET/PUT/POST/PATCH method.
Cookie: SID=c9f4baf91d3e4ed7cfb18e598c5711f5
/sys/log_out
Response:
{
"Success":"Log out "
}
POST None
PATCH None
⚫ Resource value definitions:
Remarks
2.11 Image Update
/sys/file_verify
Response:
{
"size":"5375",
"count":"2"
"detail": [
{
" name ":" manifest.xml",
" size ":"5007",
},
{
"name":" checksum.md5",
"size":”368”,
},
]
}
PATCH None
/sys/upload
The standard way to upload files in a web application is to use a form with a special
multipart/form-data encoding.
<RFC1521> In the case of multiple part entities, in which one or more different sets of
data are combined in a single body, a "multipart" Content-Type field must appear in the
entity's header. The body must then contain one or more "body parts," each preceded
by an encapsulation boundary, and the last one followed by a closing boundary. Each
part starts with an encapsulation boundary, and then contains a body part consisting of
header area, a blank line, and a body area.
Each body part is preceded by an encapsulation boundary. The encapsulation boundary
MUST NOT appear inside any of the encapsulated parts. Thus, it is crucial that the
composing agent be able to choose and specify the unique boundary that will separate
the parts.
Encapsulation boundaries must not appear within the encapsulations, and must be no
longer than 70 characters, not counting the two leading hyphens.
The encapsulation boundary following the last body part is a distinguished delimiter
that indicates that no further body parts will follow. Such a delimiter is identical to
the previous delimiters, with the addition of two more hyphens at the end of the line:
--gc0p4Jq0M2Yt08jU534c0p--
<RFC2388> “Multipart/form-data” can be used for forms that are presented using
representations other than HTML (spreadsheets, Portable Document Format, etc), and
for transport using other means than electronic mail or HTTP. This document defines
the representation of form values independently of the application for which it is used.
"Multipart/form-data" contains a series of parts. Each part is expected to contain a
content-disposition header [RFC 2183] where the disposition type is "form-data", and
where the disposition contains an (additional) parameter of "name", where the value of
that parameter is the original field name in the form. For example, a part might contain
a header:
Content-Type:multipart/form-data;
boundary=----WebKitFormBoundaryuTETT0zNHgTxZV1W
------WebKitFormBoundaryuTETT0zNHgTxZV1W
Content-Disposition:form-data; name="ADAM-3600-image-
1.1.2.bin"; filename="ADAM-3600-image-1.1.2.bin"
Content-Type: text/plain
< data>
------WebKitFormBoundaryuTETT0zNHgTxZV1W--
Response: 200 OK
PATCH None
Remarks Must log in first
/sys/update
Response:
{
"Notice":"updating"
}
PATCH None
/sys/update_info
Response:
{
"updateinfo": {update information}
}
POST None
PATCH None
Remarks
/sys/version?filename=/tmp/menifest.xml
Description Show the version information of the update package for Edgelink device.
PUT None
POST None
PATCH None
Remarks
2.11.6 Recover to default image
/sys/image/recovery
/sys/image/recovery?token={token}
Response:
{
"version": "2.8.2",
"token": "gQb4gRECXnyzuiFB3me7Lg=="
}
⚫ Request:
POST
/sys/image/recovery?token=gQb4gRECXnyzuiFB3me7Lg==
Content-type: application/json
PATCH None
Remarks Must log in first
/sys/log_create
Response:
{
"TS":"1431773198"
}
PUT None
POST None
PATCH None
/sys/log_message
Description Get the syslog messages of Edgelink device between twice requests.
URL Structure https://{ip address}/sys/log_message
[Example]:
⚫ Request: POST /sys/log_message
Content-type: application/json
Request:
{
"TS":"1431773198"
}
Response:
{
"syslog_info": {syslog information}
}
/data/cellular_info
[Example]:
⚫ Request: GET /data/cellular_info
Content-type: application/json
Response: 200 OK
{
"MOBILE_MNO": "No GPRS Service",
"MOBILE_MNT": "No GPRS Service",
"MOBILE_MPN": "0",
"MOBILE_MDT": "0 Bytes",
"MOBILE_SIGNAL_QUALITY": "Not Connected(0)",
"PUB_IP": "0.0.0.0"
}
⚫ Request: GET /data/cellular_info/ PUB_IP
Content-type: application/json
Response: 200 OK
{
"0.0.0.0"
}
PUT None
POST None
PATCH None
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
Mobile MOBILE_MNO String R Mobile operator:
network China Mobile
operator China Unicom
China Telecom
China Tietong
Mobile MOBILE_MNT String R Mobile network type:
network type 2G, 3G, 4G
Mobile Phone MOBILE_MPN String R Mobile Phone Number
Number 86xxxxxxxxxxx
Mobile data MOBILE_MDT String R Mobile data traffic
traffic
Mobile signal MOBILE_SIGNAL String R Mobile signal quality
quality _QUALITY 0-100
/sys/net_basic/lan/
[Example]:
⚫ Request: GET /sys/net_basic/lan/
Content-type: application/json
Response: 200 OK
{
"ETH": [
{
"IF": "eth0",
"DN": "LAN1",
"SL": "",
"IfStat": "Down",
"LinkStat": "Not wired",
"ipv4": {
"IP": "192.168.172.223",
"MAC": "54:4A:16:8F:71:98",
"Msk": "255.255.255.0",
"GW": "192.168.172.1",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ""
}
},
"ipv6": {
"IP": "fe80::564a:16ff:fe8f:7198",
"MAC": "54:4A:16:8F:71:98",
"PrfL": "64",
"GW": "fe80::2276:93ff:fe2d:f474",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ""
}
},
"cnnttype": {
"CnCkTp": "None",
"PInt": 1,
"PHost": {
"host0": "",
"host1": "www.badiu.com",
"host2": ""
},
"MxSlcTm": 60,
"RbtTm": 0
}
},
{
"IF": "eth1",
"DN": "LAN2",
"SL": "",
"IfStat": "Up",
"LinkStat": "Wired",
"ipv4": {
"IP": "0.0.0.0",
"MAC": "54:4A:16:8F:71:9A",
"Msk": "0.0.0.0",
"GW": "0.0.0.0",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ""
}
},
"ipv6": {
"IP": "::",
"MAC": "54:4A:16:8F:71:9A",
"PrfL": "1",
"GW": "::",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ""
}
},
"cnnttype": {
"CnCkTp": "None",
"PInt": 1,
"PHost": {
"host0": "",
"host1": "www.badiu.com",
"host2": ""
},
"MxSlcTm": 60,
"RbtTm": 0
}
}
]
}
PUT Request:
PUT /sys/net_basic/lan/id_x
PUT /sys/net_basic/lan/id_x/ipv4/
[Example]:
⚫ Request: PUT /sys/net_basic/lan/id_0/ipv4/
Content-type: application/json
{
"IP": "10.0.0.2",
"Msk": "255.255.255.0",
"GW": "{ip address}",
"DHCP": 0
}
Response: 200 OK
{
"Success": "Config netcard completed"
}
Content-type: application/json
{
"DHCP": 1
}
Response: 200 OK
{
"Success": "Config netcard completed"
}
POST None
PATCH None
Remarks
/sys/net_basic/wlan/
Content-type: application/json
Response: 200 OK
{
"WL": [
{
"general": {
"Nm": "wlan0",
"DevId": "1286:204a",
"En": 1,
"Md": "Client"
},
"client": {
"general": {
"SSID": "RD192_6633",
"BSSID": "",
"Scrt": "WPA/WPA2 PSK",
"Pswd": " YWR2YW50ZWNoNjYzMw=="
},
"ipv4": {
"IP": "0.0.0.0",
"MAC": "D4:CA:6E:90:1A:D3",
"Msk": "0.0.0.0",
"GW": "0.0.0.0",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ";;"
}
},
"ipv6": {
"IP": "::",
"MAC": "D4:CA:6E:90:1A:D3",
"PrfL": "1",
"GW": "::",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ";;"
}
},
"cnnttype": {
"CnCkTp": "Ping",
"PInt": 1,
"PHost": {
"host0": "www.baidu.com",
"host1": "",
"host2": ""
},
"MxSlcTm": 60,
"RbtTm": 0
}
},
"AP": {
"general": {
"Chn": "6",
"MxStn": "10",
"SSID": "WiFi AP",
"Scrt": "open",
"Pswd": ""
},
"ipv4": {
"IP": "192.168.180.1",
"MAC": "D4:CA:6E:90:1A:D3",
"Msk": "255.255.255.0",
"GW": "0.0.0.0",
"DHCP": 0
}
}
}
]
}
PUT Request:
PUT /sys/net_basic/wlan/id_0
[Example]:
⚫ Request: PUT /sys/net_basic/wlan/id_0
Content-type: application/json
{
"general": {
"Nm": "wlan0",
"DevId": "1286:204a",
"En": 1,
"Md": "Client"
},
"client": {
"general": {
"SSID": "RD192_6633",
"BSSID": "",
"Scrt": "WPA/WPA2 PSK",
"Pswd": " YWR2YW50ZWNoNjYzMw=="
},
"ipv4": {
"IP": "0.0.0.0",
"MAC": "D4:CA:6E:90:1A:D3",
"Msk": "0.0.0.0",
"GW": "0.0.0.0",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ";;"
}
},
"ipv6": {
"IP": "::",
"MAC": "D4:CA:6E:90:1A:D3",
"PrfL": "1",
"GW": "::",
"DHCP": 1,
"DNS": {
"IsAuto": "true",
"DnsIP": ";;"
}
},
"cnnttype": {
"CnCkTp": "Ping",
"PInt": 1,
"PHost": {
"host0": "www.baidu.com",
"host1": "",
"host2": ""
},
"MxSlcTm": 60,
"RbtTm": 0
}
},
"AP": {
"general": {
"Chn": "6",
"MxStn": "10",
"SSID": "WiFi AP",
"Scrt": "open",
"Pswd": ""
},
"ipv4": {
"IP": "192.168.180.1",
"MAC": "D4:CA:6E:90:1A:D3",
"Msk": "255.255.255.0",
"GW": "0.0.0.0",
"DHCP": 0
}
}
}
Response: 200 OK
{
"Success": "Config netcard completed"
}
POST None
PATCH None
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
Interface
Nm String R Interface name, wlanx
Name
DeviceID DevId String R Device ID of the wifi module
Enable En String R Enble or disable wifi, 0 or 1
Mode Md String RW Client or AP mode
Service Set Id SSID String RW Service set identifier
AP MAC MAC address of access point, not
BSSID String RW
address necessary
Security type Scrt String RW Open, WPA/WPA2 PSK, WEP
Access point password, use base64
Password Pswd String RW
encode
Default :6,
Channel Chn String RW
Value: Auto, 1~11
Max station
MxStn String RW Maximum number of stations
number
MAC ID MAC String R MAC address.
(12+5) characters, ex,
"00-D0-C9-F0-63-F7"
Get IP DHCP Number RW Get IP Method
Method 0: static IP
1: DHCP
IP Address IP String RW IP address
Subnet Mask Msk String RW Subnet Mask
Gateway GW String RW Gateway address
Address
IPV6 PrfL String RW Subnet prefix length
DNS mode IsAuto String RW Auto DNS, or manual config DNS
address
DNS address DnsIP String RW DNS address
Connection CnCkTp String RW The type of check connection:
Check Type "None","Ping"
Ping Interval PInt Number RW Ping interval.
Unit: Second
Ping Host host String RW Host name used to check connection,
support 3 host name
Max Silence MxSlcTm Number RW Wait time for checking connection.
Time Unit: minute
Reboot On RbtTm Number RW If connection failure time is exceeding
Failure Time the value, reboot edgelink device.
Unit: hour
⚫
Remarks
/sys/net_basic/cellular/
[Example]:
⚫ Request: GET /sys/net_basic/cellular
Content-type: application/json
Response: 200 OK
{
"MdlNm": "Auto",
"DevId": "2c7c:0125",
"DevDesc": "EC20CEFA-512-STD(Quectel) QMI(wwan0) ",
"CnntSt": false,
"DialType": "ppp",
"AcsPort": "/dev/ttyUSB0",
"SptDlType": "ppp;QMI",
"SwchTp": "",
"SwchTag": "",
"MstrSim": 0,
"Urat": "",
"sim": [
{
"Oprt": "",
"NtMd": "",
"APN": "",
"DialNm": "",
"PIN": "",
"bAuth": false,
"USR": "",
"PSWD": ""
},
{
"Oprt": "",
"NtMd": "",
"APN": "",
"DialNm": "",
"PIN": "",
"bAuth": false,
"USR": "",
"PSWD": ""
}
],
"DNS": {
"IsAuto": "false",
"DnsIP": ""
},
"cnnttype": {
"CnCkTp": "None",
"PInt": 0,
"PHost": {
"host0": "",
"host1": "",
"host2": ""
},
"MxSlcTm": 0,
"RbtTm": 0
}
}
PUT Request:
PUT /sys/net_basic/cellular
[Example]:
⚫ Request: PUT /sys/net_basic/cellular
Content-type: application/json
{
"MdlNm": "Auto",
"DevId": "2c7c:0125",
"DevDesc": "EC20CEFA-512-STD(Quectel) QMI(wwan0) ",
"CnntSt": false,
"DialType": "ppp",
"AcsPort": "/dev/ttyUSB0",
"SptDlType": "ppp;QMI",
"SwchTp": "",
"SwchTag": "",
"MstrSim": 0,
"Urat": "",
"sim": [
{
"Oprt": "",
"NtMd": "",
"APN": "",
"DialNm": "",
"PIN": "",
"bAuth": false,
"USR": "",
"PSWD": ""
},
{
"Oprt": "",
"NtMd": "",
"APN": "",
"DialNm": "",
"PIN": "",
"bAuth": false,
"USR": "",
"PSWD": ""
}
],
"DNS": {
"IsAuto": "false",
"DnsIP": ""
},
"cnnttype": {
"CnCkTp": "None",
"PInt": 0,
"PHost": {
"host0": "",
"host1": "",
"host2": ""
},
"MxSlcTm": 0,
"RbtTm": 0
}
}
Response: 200 OK
{
"Success": "Config netcard completed"
}
POST None
PATCH None
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
Module name MdlNm String R Module name, e.g.: Auto
0:enable
Device ID DevId String R
1:disable
Device
DevDesc String R Cellular device description
description
Connection
CnnSt Bool RW Connection status
status
Dial type DialType String RW Dial type, ppp or QMI
Cellular device access port,
Access port AcsPort String R
e.g.: /dev/ttyUSB0
Support dial Supported dial type for
SptDlType String R
Type current cellular device
For dual-sims device,
Switch type *
SwchTp String RW according this field to
switch sim card
For dual-sims device, if
Switch tag *
SwchTag String RW switch type is tag, set tag
name here.
For dual-sims device,
Master sim *
MstrSim String RW master sim card index, 1 or
2.
Cellular Oprt String RW Cellular operator
Operator auto
unicom
cmnet
telecom
other
Network Type NtMd String RW Cellular network type
Auto
4G(LTE_M1)
4G(LTE_NB1)
4G(LTE)
3G(UMTS)
2G(GSM)
NBIOT
Access point APN String RW Access point name
Name
Dial Number DialNm String RW Dial number
PIN Number* PIN String RW Reserved
Authenticatio bAuth Bool RW Authentication or not
n
User Name USR String RW User name for authentication
Password PSWD String RW Password for authentication
Connection CnCkTp String RW The type of check connection:
Check Type "None","Ping"
Ping Interval PInt Number RW Ping interval.
Unit: second
Ping Host host String RW Host name used to check
connection, support 3 host
names
Max Silence MxSlcTm Number RW Wait time for checking
Time connection.
Unit: minute
Reboot On RbtTm Number RW If connection failure time is
Failure Time exceeding the value, reboot
edgelink device.
Unit: hour
Remarks
/sys/net_basic/cellular/status
[Example]:
⚫ Request: GET /sys/net_basic/cellular/status
Content-type: application/json
Response: 200 OK
[{
"name": "#MOBILE_SIM",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127103",
"readwrite": "1"
}, {
"name": "#MOBILE_IP",
"type": "System Tag",
"value": "0.0.0.0",
"quality": "8080H",
"timestamp": "1681956310.127190",
"readwrite": "1"
}, {
"name": "#MOBILE_MNO",
"type": "System Tag",
"value": "No Cellular Service",
"quality": "8080H",
"timestamp": "1681956310.127449",
"readwrite": "1"
}, {
"name": "#MOBILE_MNT",
"type": "System Tag",
"value": "No Cellular Service",
"quality": "8080H",
"timestamp": "1681956310.127481",
"readwrite": "1"
}, {
"name": "#MOBILE_MPN",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127524",
"readwrite": "1"
}, {
"name": "#MOBILE_SIGNAL_QUALITY",
"type": "System Tag",
"value": "Not Connected",
"quality": "8080H",
"timestamp": "1681956310.127542",
"readwrite": "1"
}, {
"name": "#MOBILE_CSQ",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127562",
"readwrite": "1"
}, {
"name": "#MOBILE_MCC",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127586",
"readwrite": "1"
}, {
"name": "#MOBILE_MNC",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127607",
"readwrite": "1"
}, {
"name": "#MOBILE_IMEI",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127697",
"readwrite": "1"
}, {
"name": "#MOBILE_IMEI_RAW",
"type": "System Tag",
"value": "0",
"quality": "8080H",
"timestamp": "1681956310.127721",
"readwrite": "1"
}, {
"name": "#MOBILE_DATA_YEAR",
"type": "System Tag",
"value": "0.00 Bytes",
"quality": "8080H",
"timestamp": "1681956310.127817",
"readwrite": "1"
}, {
"name": "#MOBILE_DATA_MONTH",
"type": "System Tag",
"value": "0.00 Bytes",
"quality": "8080H",
"timestamp": "1681956310.127793",
"readwrite": "1"
}, {
"name": "#MOBILE_DATA_DAY",
"type": "System Tag",
"value": "0.00 Bytes",
"quality": "8080H",
"timestamp": "1681956310.127769",
"readwrite": "1"
}]
PUT None
POST None
PATCH None
/sys/net_basic/cellular/gps
[Example]:
⚫ Request: GET /sys/net_basic/cellular/gps
Content-type: application/json
Response: 200 OK
{
"EN": true,
"LTTD": "0.00",
"LNGTD": "0.00",
"ALTTD": "0.00"
}
Content-type: application/json
Response: 200 OK
{
"EN": false,
"LTTD": "0.00",
"LNGTD": "0.00",
"ALTTD": "0.00"
}
Content-type: application/json
Response: 200 OK
{
"gps_status": "Not connected"
}
PUT None
POST None
PATCH Request:
PATCH /sys/net_basic/cellular/gps
Response: 200 OK
[Example]:
⚫ Request: PATCH /sys/net_basic/cellular/gps
{"EN":true}
⚫
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
Enable EN BOOL RW Enable or disable this function.
Latitude LTTD String R Latitude information
Longitude LNGTD String R Longitude information
Altitude ALTTD String R Altitude information
Remarks
2.14 Remoteit
/data/remotit
[Example]:
⚫ Request: GET /data/remoteit
Content-type: application/json
Response: 200 OK
{
"remoteit_conf": "No config file"
}
PUT None
POST None
PATCH None
Remarks
/sys/websettings
[Example]:
⚫ Request: GET /sys/websettings
Content-type: application/json
Response: 200 OK
{
"web_refresh_interval": 1000
}
PUT Request:
PUT /sys/websettings
Response: 200 OK
[Example]:
⚫ Request: PUT /sys/ websettings
{
"web_refresh_interval": 1000
}
POST None
PATCH None
⚫ Resource value definitions:
Field Abbreviation Data Type Property Description
Tags refresh interval on web page
web_refresh_interval web_refresh_interval Number RW
unit: millisecond
Remarks