UDP instead of MQTT

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Posts: 33
Joined: Wed Jan 10, 2018 8:19 pm
Location: Bulgaria

UDP instead of MQTT

Post by newb » Wed Sep 12, 2018 5:49 pm


I've got esp8266-01 (1mb) which I intend to use as a wifi button. The esp-01 will notify for button press a raspberry pi, where raspberry pi will be in AP mode and esp-01 in workstation mode. There won't be internet or router connections i.e. it will be a closed network.

My question is if it's a good idea to send button press event over UDP rather than MQTT. The RPi will send back to the esp-01 some basic info as well. My concern is if esp-01 will have enough memory to utilise MQTT client without freezing the module (I've never compiled micropython before).

Post Reply