-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up MQTT_SN gateway failed #26
Comments
Hi @Pawlicho , thank you for noticing. there was a bug in entrypoint script which is fixed now. kyberpunk/paho-mqtt-sn-docker@f38feb7. I will also release new docker images (1.0.3). You can use default configuration as a base, I personally use these configuration options to bind directly to OTBR interface:
|
Also please try this image instead, paho6 repository is not maintained, now it is under one: https://hub.docker.com/layers/kyberpunk/paho/udp6/images/sha256-a83b84a08593ca2be6e8b40aad0683c824747ee4260f599a36b130ff50f914c6?context=repo |
Hi @kyberpunk, I am not sure if I do something wrong, but running both kyberpunk/paho:latest and kyberpunk/paho:1.0.3-udp6 results in error: I also would like to ask about thos configurations you quoted: Should they be appended to the .conf file? I am asking because in default configuration file provided on official paho repo there are only set those parameters: Thank you for your time! |
@Pawlicho you are right, I see, they have changed these options: eclipse-paho/paho.mqtt-sn.embedded-c@5fb4312. So it may look this way, I will test it myself in the evening:
About that error, I accidentally built docker images on windows with CRLF endings, I've uploaded new fixed artifacts. Sorry for that. |
Thank you @kyberpunk. Just one more question (may seem stupid): if I'd like to connect the client to the gateway with which IP address should I open socket? Should it be some multicast ip like ff03::1 / ff02::1 or mesh-local EID or maybe some other? I mean in case I ran docker in container:otbr network. |
@Pawlicho I'm not sure if I get the question correctly. Do you use OpenThread CLI example app or do you have some other client? |
@kyberpunk I am very sorry to disturb you again. Running kyberpunk/paho:udp6 results in such output:
ConfigFile : /etc/paho/gateway.conf 20231029 192743.028 PahoGateway-01 starts running. Last question wouldn't it be enaugh to have just a gateway without a broker? A lot of prabably stupid questions, but I have been struggling for days. Time files but I need it for my reasearch and I am pretty desperate. |
Hi there,
I am trying to setup Thread network with MQTT-SN over it and I came across your docker for paho. I've been trying to follow instructions provided here https://github.com/kyberpunk/openthread/blob/master/README.md#Trying-MQTT-SN-client-with-CLI-application-example, however I fail at the step when I want to run MQTT_SN Gateway docker. I correctly run OTBR through docker and started mosquitto docker as 172.18.0.8. When I run the command:
sudo docker run --name paho --net test --ip 172.18.0.8 kyberpunk/paho --broker-name 172.18.0.7 --broker-port 1883
I receive the error:
exec /app/paho/MQTTSNGateway/docker_entrypoint.sh: exec format error
If i decide to choose binding to container:otbr I am not able to specify neither broker port nor ip address.
I have been trying to use gateway from official paho repository, but I am struggling to understand: To connect to a gateway through a client I need its ip address, but I can see only multicast adresses to configure in .conf file.
I'd appreciate help from you. I would not bother but it's crucial for my studies.
The text was updated successfully, but these errors were encountered: