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
}
StateDescription
0Edge core thing is created
1TS Edge core is running and ready for deployments
2TS 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]
    }
}
FieldDescription
binaryTypeUpdate type: EDGE_DATA_UPDATE, EDGE_DUMP_UPDATE, or EDGE_SCHEMA_UPDATE
dataZipped 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."
}
FieldDescription
resultsuccess or fail
resultReasonHuman-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"
}
FieldDescription
dataBase64-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"
}
FieldDescription
payloadBinary buffer chunk
indexSequence number (0-based)
countTotal number of chunks
checksumChecksum 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.