JSON parser sometimes fails in Data Logging example
begodev opened this issue · comments
begodev commented
begodev commented
Driver & Data Logging Example were built on Debian-10...
Ilya Gavrilov commented
It seems to be issue with encoding
@begodev can you attach corresponding json file please?
begodev commented
the file is taken from 10.0.0.12/root/vnk
Ilya Gavrilov commented
Attached file doesn't produce any errors
Maybe this file has been saved in Windows in some encoding like UTF-16, then copied to RPi
It seems encoding detection needed and check if a file exists.
Ilya Gavrilov commented
begodev commented
Ok, with try/catch blocks added it seems the software is working properly.