Open TD-er opened 2 years ago
Code example: https://github.com/romix123/P1-wifi-gateway/blob/8827422c9ac9aab94b45c4e6f58495c4b0d04a00/src/decoder.ino#L192
N.B. this code example is very verbose and can use quite a lot of optimizations regarding telegram decoding. For example there is no need to compare with strings over and over again, when we simply can decode the telegram header into various ints
~An alternative could be this template-based DSMR P1 parser: https://github.com/lvzon/dsmr-p1-parser, though that doesn't support the Swedish version of the protocol, it wouldn't be hard to add~. Linked to the wrong library. This is the template-based lib I was trying to link to: https://github.com/matthijskooijman/arduino-dsmr, and it recently started support for the Swedish extensions to the protocol (or so it seems) 😅
See request on forum
Apparently the protocol differs.