Search found 2 matches

by Gudvin
Wed Dec 25, 2019 4:58 pm
Forum: General Discussion and Questions
Topic: MQTT + HTTP Server simultaneously
Replies: 2
Views: 291

Re: MQTT + HTTP Server simultaneously

kevinkk525 wrote:
Wed Dec 25, 2019 7:30 am
You use a webserver that uses uasyncio and the async mqtt client https://github.com/peterhinch/micropython-mqtt or you use a webserver that uses _thread in which case you have blocking loops in different threads.
Thank you kevink525 uasyncio would be a perfect solution for me.
by Gudvin
Tue Dec 24, 2019 8:53 pm
Forum: General Discussion and Questions
Topic: MQTT + HTTP Server simultaneously
Replies: 2
Views: 291

MQTT + HTTP Server simultaneously

Hello I run a mosquitto broker on a Raspberry Pi 3 board which can be turned "on" and "off" by a NodeMcu board. NodeMcu is a MQTT Client and uses this protocol to communicate with Raspberry Pi 3. Further I need a http server on my NodeMcu in order to turn on and off a Raspberry Pi board via "http" p...