mozilla-iot working sample

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
Posts: 454
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall

mozilla-iot working sample

Post by devnull » Tue Nov 26, 2019 7:05 am

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 !

User avatar
Posts: 205
Joined: Fri Oct 31, 2014 10:29 am
Location: Zurich / Switzerland

Re: mozilla-iot working sample

Post by marfis » Tue Nov 26, 2019 5:01 pm

did you see

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.

Posts: 249
Joined: Fri Jan 29, 2016 12:32 pm

Re: mozilla-iot working sample

Post by jedie » Tue Nov 26, 2019 9:20 pm

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?

Post Reply