Started with gobotrpc autogenerated parser and ctest (not working)

This commit is contained in:
AlexanderHD27
2025-01-19 11:45:41 +01:00
parent 346e6a52b7
commit 33d3dc0608
24 changed files with 409 additions and 55 deletions

View File

@@ -0,0 +1,20 @@
#pragma once
/**
* This Header file was auto-generated by the GobotRPC-Protocol-Generator-Tool
*/
#include {{ "<stdint.h>" }}
{%- for h in headers %}
#include {{ "\"" + h + "\"" }}
{%- endfor %}
int getPackageSize(uint8_t data) {
switch(data) {
{%- for n in rpcSizes %}
case {{ prefix }}RPCNames::{{ n }}:
return {{ rpcSizes[n] }};
{%- endfor %}
default:
return -1;
}
};