Olivia Waligóra Kashee Ramalingum Does DeepstreamHub support the MQTT protocol with WebSockets?
The PubSub pattern is very resource efficient on IoT devices when compared to HTTP request/response.
WHile HTTP is okay for sending data from an IoT device to the server, controlling a device from the server would require polling for updates every now and then on the microcontroller, which I found to be memory expensive on an arduino/nodemcu.
Check out the Smart lock project and its code at https://github.com/aharshac/smart-lock. Currently, we’re using a different MQTT broker.