Hi, I've been trying out the DIY smart meter project, however, whenever I try to read the information via the example web page, I get the error:
Unable to decode "<- Serial1\r", got SyntaxError: Unexpected token < in JSON at position 0
I was on version 2.03 at the time. I updated to 2.04 and the problem persists. I've tried stripping out all but the essential code on both the puck and the web page, but still I'm getting the JSON error. The strange thing is that once it worked correctly and the value came through to the web page. I don't think I did anything special that time and I haven't been successful since.
Any ideas what could be causing this?
© Espruino, powered by microcosm.
Report a problem