4

I am a master student and my topic is about making protocol conversion among IoT communication protocols for example between CoAP and MQTT in order to make the devices that use MQTT protocol to communicate with the devices that use CoAP protocol.

I'm not sure how to get devices to communicate using CoAP and MQTT; is this possible?

4

You would need a 'gateway' that can translate from CoAP to MQTT (and vice versa). Various examples exist, such as:

  • emq-coap which allows CoAP clients to communicate with an instance of the EMQ MQTT broker (a usage example is given in the README)

  • Eclipse Ponte, which bridges HTTP, MQTT and CoAP. An example is given that you can send a message to mqtt://<your ponte>/<your thing> and then access it via CoAP with coap://<your ponte>/r/<your thing>. This blog post has a brief example of using MQTT and HTTP if you want to see it illustrated in more detail.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.