mddbl
or are you talking about copying the files into your project? I'm assuming the latter since you mentioned package manager. Hmmm, that's a really interesting idea. What I'd really like, in order for me to understand exactly what you mean, is if you'd walk me through the process you invision for this.
pip install improv-wifi-mod
or npm install express-moddable
copying the external files in their project folder; and possibly making the appropriate adjustment in manifest.json
?
When trying examples/pins/monitor/main.js an error occurs.
Projects/moddable/modules/pins/digital/monitor/esp/modMonitor.c (165) # Break: Monitor.prototype.rises: not configured!
In egde: there is only edge: Monitor.Falling
by adding edge: Monitor.Falling | Monitor.Rising
the error disappears.
'''
if (undefined != config.button1_pin) {
if (config.button1_port)
monitor1 = new Monitor({pin: config.button1_pin, port: config.button1_port, mode: Digital.InputPullUp, edge: Monitor.Falling | Monitor.Rising});
else
monitor1 = new Monitor({pin: config.button1_pin, mode: Digital.InputPullUp, edge: Monitor.Falling | Monitor.Rising});
monitor1.onChanged = function() {
trace(Button 1: state: ${this.read()}, changed ${this.rises + this.falls} times\n
);
}
}
'''
I have a timer sending some sensor readings, if i set the timer for 5 seconds, i'm getting this error Intermittently (once every 20-30 seconds):throw new Error("SSL: alert: " + session.alert.level + ", " + session.alert.description);
If i set the timer to 7 seconds or more, this error does not occur.
I've been digging through docs and i am stumped although I'm sure the answer is in there somewhere.
Is it possible to write configs/preferences to a partition at flash time? If I compiled a moddable program that accepts preferences, I may make it easier
to do fleet provisioning if I can flash configs when I flash the compiled moddable program.
esptool.py
.
I'm basically attempting to recreate this flow:
https://www.youtube.com/watch?v=ZsD59Tg2oCQ
for multiple devices, they're using esptool-js I believe
Yes, it is. Socket is implemented for all the simulators on macOS, Windows, and Linux. That allows just about all the network modules to work. For example, you can run the httpget
example:
cd $MODDABLE/examples/network/http/httpget
mcconfig -d -m
You can run the WebSocket examples the same way. Unfortunately.... the websocketclient
example currently throws an exception because the echo server it uses was recently shut down. But, the example is still correct... if you can find another echo server. ;)
cd $MODDABLE/examples/network/websocket/websocketclient
mcconfig -d -m