Building a minimal app, with nothing:
mos clone http://github.com/mongoose-os-apps/empty app1
mos build --platform esp32 --build-var APP_SLOT_SIZE=0xe0000 --build-var MGOS_ROOT_FS_SIZE=65536
If you add ota, aws, libs, it would n…
It makes sense to make a endpoint to upload the code. We'll do that.
You're most probably getting OOM. Monitor your free RAM, basically. I highly doubt the problem is with the network.
Hmm, not sure - but you always refer to the working example (th…
Your goal is to leave wifi.sta.pass as NULL (zero pointer), meaning, unset. Doing mos wifi praveena NULL is wrong, cause it sets the password to the string "NULL". The configuration command you should be using is mos config-set wifi.sta.ssid=prave…
There should be only one thing that controls the shadow - either AWS or mDash. You can nail down what is the authority by mos config-set shadow.lib=aws or mos config-set shadow.lib=dash
mgos_dash_notify() generates a notification (similar to MQTT p…
Second @mamuesp . It is fine to use mJS in production, as soon as you're happy with it.
It is not built for performance though, so if you see any performance issues, optimise using C.
So @praveenapoojary - if you're happy with mJS, keep it.
@UserMartin you're correct and we're aware about it.
We'll make a documentation change to point to the differences with JSON-RPC 2.0
Sending "jsonrpc": "2.0" in every frame is not wise in embedded context, we'll make it optional.
Hi @bs_alex ,
In short, device subscribes to devices/$DEVICE_ID/rpc
So in order to talk to it, send RPC frames to it.
The easiest is to mos config-set debug.level=3
Then look at the serial log. You'll get a clue quickly.
as @rojer said,
The rationale is that Mongoose OS 's shadow API works for AWS IoT, Microsoft Azure, and mDash the same way.
Microsoft simply denies devices to update anything but reported.
And that makes sense, because this is how t…
mjs does not provide toFixed . It probably should. Feel free to add.
As a workaround, I think you can FFI sprintf and format the way you want.
$ mjs -e 'let f = ffi("int sprintf(char *, char *, double)"); let buf="must be more than 5 chars"; let l…