MQTT-SN with Windows

前端 未结 1 1171
不知归路
不知归路 2020-12-18 16:09

I have been running MQTT (Mosquito) for a while on Windows and it works great with my Netduino, thanks ppatierno.

But now I need to start incorporating mqtt-sn for a

相关标签:
1条回答
  • 2020-12-18 17:09

    Really Small Message Broker (RSMB) has support for MQTT-SN over UDP. Source is available from git on http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.rsmb.git. To build it use MS Visual Studio and make from Cygwin.

    Then you need a MQTT-SN serial to UDP bridge. I use https://github.com/njh/mqtt-sn-tools , works very well. Build it in Cygwin.

    RSMB might completely replace your MQTT broker, but if you want to keep Mosquito, then bridge RSMB to push all messages to Mosquito. Here is simple configuration file 'broker.cfg':

    # will show you packets being sent and received
    trace_output protocol
    
    # normal MQTT listener
    listener 1884 INADDR_ANY    
    
    # MQTT-S listener
    listener 1885 INADDR_ANY mqtts
    
    # MQTT-S outgoing multicast bridge (QoS -1)
    connection Bridge_2_Mosquito
    address mosquito_host_name:1883
    # publish all messages
    topic # out
    
    0 讨论(0)
提交回复
热议问题