kpn-iot / thingsml-c-library

C library for ThingsML on your device
https://kpn-iot.github.io/thingsml-c-library/
MIT License
6 stars 4 forks source link

printText stringlength value is wrong. #8

Closed oedze closed 3 years ago

oedze commented 3 years ago

in src/senml/record/senml_record.cpp line 107 should be: res += printText(F(",\"ut\":"), 6); instead of res += printText(F(",\"ut\":"), 5); Otherwise it will generate invalid json with "ut"1553999 instead of "ut":1553999

josephverburg commented 3 years ago

Fixed in v1.1.0, thanks for reporting! 👍