I faced a challenge choosing between MQTT and CoAP!!
Hey guys while i was architecting a smart home energy management application requiring flexible communication patterns, I faced a challenge choosing between MQTT and CoAP please which protocol offers more adaptable client-server relationships and communication models to support my application's unique needs? @IoT Cloud
Solution:Jump to solution
I suggest using MQTT. Proper design of the MQTT Topic Structure is critical. Please check my article for the reference: https://www.thingrex.com/mqtt_topic_structure/
11 Replies
You would need to mention the unique needs so one can help I;d assume
Check this video https://youtu.be/fm4wqrh0LFw?si=Lj1EIBFQlOziIqXV
HiveMQ
YouTube
MQTT vs AMQP for IoT
MQTT is a communication protocol designed for the Internet of Things, with publish-subscribe (pub/sub) messaging as its core. The MQTT server, also known as the broker, allows you to inspect and manage connected IoT devices and messages. AMQP is Advanced Message Queuing Protocol. Watch the video comparison of MQTT and AMQP and discover the diffe...
#Golioth is an IoT platform that provides cloud services for embedded devices. We think of our platform as a "universal connector". Golioth is purpose-built for you and the hardware you develop. Golioth enables everything that your devices need from the cloud, from establishing secure connections and providing over-the-air updates, to managing data to/from your fleet and connecting that to any cloud service you may need.
This platform is using AMQP for esp32
So basically i need a protocol supporting flexible client-server relationships and communication models. It should handle real-time data streaming for energy consumption updates and periodic sync for historical analysis.
If you need to use low power wireless like Thread/Matter/6LowPAN only CoAP will work
Solution
I suggest using MQTT. Proper design of the MQTT Topic Structure is critical. Please check my article for the reference: https://www.thingrex.com/mqtt_topic_structure/
MQTT and COAP which is more light weight
COAP
Am thinking matter protocol is more preferable in smart homes but don't know how much it's been adapted
Matter protocol has a huge potential. I use MQTT as it enables me to design systems with many-to-many communication models.