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

What is the correct way to run a Gateway in raspberry over Xbee? #138

Closed fstovarr closed 5 years ago

fstovarr commented 5 years ago

I'm trying use a raspberry as gateway with Xbee module connected in serial port. The communication is successful, I can see when the frame arrives to gateway with valid checksum, but seems that the message is never forwarded. I have been with this problem for several days and I have not been able to solve it, however I think that the error can be for lack of configuration of something that maybe I have not seen.

ty4tw commented 5 years ago

Hi, Thank you for your question. Could you attach a log of GW? What kind of client program are you using?

fstovarr commented 5 years ago

After of many tests, I can run client successfully. The problem was the use of Transparent Mode in the Xbee Routers instead of the API Mode, this was causing a double packaging in the Xbee protocol, after this change the client run well.

Very thanks.

ty4tw commented 5 years ago

Hi, Thank you for your information.