Inital Commit with working code gen for c

This commit is contained in:
2025-04-23 16:01:31 +02:00
commit ad0b3c431d
9 changed files with 850 additions and 0 deletions
+54
View File
@@ -0,0 +1,54 @@
{
"protocol": {
"start_byte": "0xAA",
"message_length": 0,
"max_payload": 255,
"checksum": "xor"
},
"messages_esp_to_pc": [
{
"name": "Status",
"id": "0xE2",
"payload": [
{ "name": "clientid", "type": "uint8_t" },
{ "name": "mac", "type": "uint8_t[6]" }
]
},
{
"name": "Pong",
"id": "0xD1",
"payload": [
{ "name": "clientid", "type": "uint8_t" },
{ "name": "ping", "type": "uint32_t" }
]
}
],
"messages_pc_to_esp": [
{
"name": "RequestPing",
"id": "0xE1",
"payload": [
{ "name": "clientid", "type": "uint8_t" }
]
},
{
"name": "RequestStatus",
"id": "0xE2",
"payload": [
{ "name": "clientid", "type": "uint8_t" }
]
},
{
"name": "PrepareFirmwareUpdate",
"id": "0xF1"
},
{
"name": "FirmwareUpdateLine",
"id": "0xF2",
"payload": [
{ "name": "data", "type": "uint8_t", "array": 240 }
]
}
]
}