eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
315 stars 178 forks source link

MQTT to MQTT-SN Gateway functionality #100

Closed aberkecz closed 6 years ago

aberkecz commented 6 years ago

Hi,

First of all, thank you for your hard work on this amazing project.

We have successfully used it to translate MQTT-SN messages to MQTT ones with much success. However, we are having troubles figuring out if we could use this project to translate regular MQTT messages sent by a VerneMQ broker to MQTT-SN messages so we could send information back to our low-powered devices.

Does this project present such functionality?

aberkecz commented 6 years ago

We tested it and it seems to work just fine automagically :)

However, I would propose a minor change in the first sentence of the Gateway's README.md to make it more explicit that it works both way.

From this:

MQTT-SN requires a MQTT-SN Gateway which acts as a protocol converter to convert MQTT-SN messages to MQTT messages.

To this:

MQTT-SN requires a MQTT-SN Gateway which acts as a protocol converter to convert MQTT-SN messages to and from MQTT messages.

I would be happy to issue a PR if you agree.

ty4tw commented 6 years ago

Hi,

Thank you. Any PR is appreciated.