Page 1 of 1

mozilla-iot working sample

Posted: Tue Nov 26, 2019 7:05 am
by devnull
Does anybody have some very simple device code that can be used with mozilla-iot gateway to save some time ?

Also info on the agent used and setup would be very helpful, the learning curve appears to be quite steep !

Re: mozilla-iot working sample

Posted: Tue Nov 26, 2019 5:01 pm
by marfis
did you see
https://github.com/mozilla-iot/webthing-upy

I agree it is not easy to setup, i also raised this as an issue on that repository. it is a bit easier now since the microwebsrv code has been patched upstream so in principle you should be fine by freezing that version (no need to checkout the fork).

i finally managed to get it somewhat working with the pyboard d sf2 in the end too but it wasnt an easy thing. you will need to compile a upy binary with thread enabled. but as a bonus, at least on my tests, you can just copy the microwebsrv code to the pyboard.

another option would be to use the new microwebsrv2 code and try to get that working.

Re: mozilla-iot working sample

Posted: Tue Nov 26, 2019 9:20 pm
by jedie
I wand to see a minimal example. Maybe use MQTT and just a on/off switch 😜

A cookiecutter template is also a gilt idea, isn't it?