Home > other >  What is the difference between the MQTT and CoAP?
What is the difference between the MQTT and CoAP?

Time:01-15

What is the difference between the MQTT and CoAP?

CodePudding user response:

The MQTT protocol business features: more power consumption, based on the TCP implementation, need to maintain a long connection, regularly send heartbeat packets, will be more electricity,
1 2 b to send and receive a total of 2 times, once a minute, 4 * 24 * 60 * 30=172 k if network is not stable, reconnect the process will be more power, more suitable for real-time control, for a secure transport
Business model: multiple clients through a central agency message many-to-many agreement
Common case model: WeChat

CoAP protocol business features:
Less power consumption, CoAP is more suitable for data acquisition occasion, more suitable for pure sensor devices, especially the battery-powered sensor devices, based on UDP transmission, don't need to maintain a long connection, requirements for equipment is simple, suitable for data acquisition,
Business model: point to point, the server to the equipment
  • Related