Replies: 1 comment 3 replies
-
Good find. Thank you for the report. This was broken by recent work on conformance and optimization of The fix is to change this line: moddable/xs/sources/xsDataView.c Line 501 in 9b9e6a9 To txString c = fxToString(the, mxArgv(0)); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I run the example: 'mqttconnection', I only get the date once, and then restarts all the time, with 'host: "test.mosquitto.org".
But when I use 'mosquitto' on a Raspberripi P5, I get this error:
'/Users/poulborg/Projects/moddable/examples/network/mqtt/mqttconnection/main.js (37) # Break: fromArrayBuffer: invalid UTF-8!'
on line:
'mqtt.onMessage = (topic, body) => trace(
received "${topic}": ${String.fromArrayBuffer(body)}\n
);'When I comment out this line, it runs without problems:
'mqtt.publish("moddable/mqtt/example/random", Math.random());'
I use a regular ESP32.
I am using latest update.
Beta Was this translation helpful? Give feedback.
All reactions