arduino-dsmr
arduino-dsmr copied to clipboard
Unable to build for ESP32 Dev Module
I can't build minimal_parse in de arduino 1.8.19 IDE but also platformio gives the same error. For now i have no clue how to fix this.
error: 'identification' was not declared in this scope
Hello Park0,
I double-checked the minimal_parse example compiled without problems.
Could you provide a complete build log?
Install esp32 2.0.6
minimal_parse:28:16: error: 'identification' was not declared in this scope
/* String */ identification,
^~~~~~~~~~~~~~
minimal_parse:29:20: error: 'power_delivered' was not declared in this scope
/* FixedValue */ power_delivered
^~~~~~~~~~~~~~~
minimal_parse:30:1: error: template argument 1 is invalid
>;
^
minimal_parse:30:1: error: template argument 2 is invalid
Documents\Arduino\libraries\arduino-dsmr\examples\minimal_parse\minimal_parse.ino: In function 'void setup()':
minimal_parse:35:3: error: 'MyData' was not declared in this scope
MyData data;
^~~~~~
minimal_parse:36:44: error: 'data' was not declared in this scope
ParseResult<void> res = P1Parser::parse(&data, msg, lengthof(msg));
^~~~
Documents\Arduino\libraries\arduino-dsmr\examples\minimal_parse\minimal_parse.ino:36:44: note: suggested alternative: 'atan'
ParseResult<void> res = P1Parser::parse(&data, msg, lengthof(msg));
^~~~
atan
Also upgraded to the latest version.
@Park0, Could you contact me via my email [email protected]? we can arrange a call, and I can take a look at what is going on.