Puck.js Error: Unable to decode "<- Serial1\r", got SyntaxError: Unexpected token < in JSON at position 0 #3013
Replies: 2 comments
-
|
Posted at 2019-07-05 by @gfwilliams Hi - please can you try again now? The I just tweaked it so that the code writes something first to connect, then evals 0.5 sec later - that should fix it I hope. I think going forward I should probably make the Puck.js lib wait automatically if the first command used is |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-06 by Fisu Yes, that seems to fix it. Works every time now. Many thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-07-05 by Fisu
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:
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?
Beta Was this translation helpful? Give feedback.
All reactions