Edge Profile (3000-3999)
Edge computing core state and synchronization messages.
Edge Core State Change (3100)
Reports the current state of the Thingsee Edge core.
{
"state": Number
}
| State | Description |
|---|---|
0 | Edge core thing is created |
1 | TS Edge core is running and ready for deployments |
2 | TS Service core is running and ready for deployments |
Edge Sync DB Data Command (3200)
Synchronize database updates to edge devices.
Request (tsmEv: 35):
{
"tsmDstTuid": "XXXX17TESTCORE001",
"tsmId": 3200,
"tsmEv": 35,
"transactionId": 2111111111,
"binaryType": "EDGE_DATA_UPDATE",
"data": {
"type": "Buffer",
"data": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
}
}
| Field | Description |
|---|---|
binaryType | Update type: EDGE_DATA_UPDATE, EDGE_DUMP_UPDATE, or EDGE_SCHEMA_UPDATE |
data | Zipped JSON buffer containing the database/delta/schema dump |
Response (tsmEv: 36):
{
"data": "EDGE_DATA_UPDATE",
"tsmDstTuid": "XXXX17TESTCORE001",
"tsmId": 3200,
"tsmEv": 36,
"transactionId": 2111111111,
"result": "success",
"resultReason": "DB updated."
}
| Field | Description |
|---|---|
result | success or fail |
resultReason | Human-readable explanation |
Edge Core Stats Diagnostics (3300)
Query host statistics from an edge core.
Request (tsmEv: 27):
{
"tsmDstTuid": "XXXX17TESTCORE001",
"tsmId": 3300,
"tsmEv": 27,
"transactionId": 132456
}
Response (tsmEv: 28):
{
"tsmDstTuid": "XXXX17TESTCORE001",
"tsmId": 3300,
"tsmEv": 28,
"transactionId": 132456,
"data": "ABCDEFG"
}
| Field | Description |
|---|---|
data | Base64-encoded statistics data |
Edge Core Binary Event (3400)
Transfer binary data in chunks from edge to cloud.
{
"tsmTs": 1573217629,
"tsmEv": 10,
"tsmId": 3400,
"tsmTuid": "XXXX17HALTIANSERVICE",
"payload": {
"type": "Buffer",
"data": [116, 117, 105, 10]
},
"index": 0,
"count": 4,
"checksum": "abcd"
}
| Field | Description |
|---|---|
payload | Binary buffer chunk |
index | Sequence number (0-based) |
count | Total number of chunks |
checksum | Checksum of complete binary payload (all chunks combined) |
Reassemble the complete payload by collecting events with indices 0 through count-1 and verifying against the checksum.