emqx / emqx-sn

EMQX MQTT-SN Gateway
https://www.emqx.com
Apache License 2.0
30 stars 20 forks source link

Forward to mqtt server #85

Open noctivityinc opened 6 years ago

noctivityinc commented 6 years ago

Hi -

MQTT Newbie here. I have a rails server setup that I want to subscribe to my emq MQTT server to listen for certain topics. Unfortunately I cant seem to connect to UDP to listen to the MQTT-SN server. Im wondering if it's possible to forward any incoming messages that the MQTT-SN server receives to the EMQ MQTT server so that it can then publish them for my rails app to subscribe to?

We have an IoT device that is publishing to the MQTT-SN server via UDP, which is why we are using MQTT-SN, but need the server to be able to subscribe to the messages.

Thanks,

Josh

terry-xiaoyu commented 5 years ago

Your rails server could subscribe to the MQTT topic (the TCP port 1883). Then all messages received from MQTT-SN can will be forwarded to your rails server via MQTT.