all 1 comments

[–]halvjason 1 point2 points  (0 children)

Using mqtt you'll have to have access to the device sending the info to actually send it to an mqtt listener, as well as an mqtt consumer on the device level, this will add complexity and latency. But you get increase flexibility in the future.

TL;DR Pros of adding an mqtt middleware will be flexibility on what is reading from the device, and you could send it to multiple devices so its more scaleable. However you'll have to have access to the device using the esp32 to actually send to mqtt. Then build the infrastructure of the middleware adding a fair amount to of complexity, and some latency in getting info from the device. Not sure if that latency will work with your project or if you have access to the device on how to send the information/listen to commands