hello beautiful people...
this week i was jerking around with mqtt and nodeMCU thing....i,so far, used adafruit mqtt broker and found it quite cool.....now when i wanted to experiment with few more, i found mosquitto....but all the tutorials available were using computers.....saw nobody using it with any boards .....now could someone suggest me, how can i use it with my nodemcu and could you please recommend me a few brokers.....is there a way, where i would use offline broker....thanks already..
i found mosquitto....but all the tutorials available were using computers.....saw nobody using it with any boards .....now could someone suggest me, how can i use it with my nodemcu
Mosquitto is an MQTT broker and it runs on computers as any software does. But you're right, Mosquitto doesn't run on an Arduino because it hasn't the resources to run it. The same is true Espressif boards and most other boards that are programmed by the Arduino IDE.
But Mosquitto runs perfectly on the Raspberry Pi and many other small Linux based ARM boards. Just install it on your Raspberry Pi and point your nodeMCU to the Raspberry Pi's IP instead of Adafruits'.
is there a way, where i would use offline broker.
Yes, but probably not as you expect it. You can Mosquitto on the Raspberry Pi and access it locally by other programs. The Raspberry Pi is offline but it still has it's internal network layer available, so the MQTT service is also available.
thanks pylon for your reply
thanks riva.....i will check it out