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
devnull
Posts: 401
Joined: Sat Jan 07, 2017 1:52 am
Location: Singapore / Cornwall
Contact:

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
marfis
Posts: 193
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
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.

jedie
Posts: 99
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