-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
not able to subscribe to Predefined topic #123
Comments
It works fine. Could you see the prompt,PreDefFile: ./predefinedTopic.conf ? 20180724 064027.518 PahoGateway-01 has been started. ConfigFile: ./gateway.conf SensorN/W: UDP Multicast 225.1.1.1:1883 Gateway Port 10000 Broker: iot.eclipse.org : 1883, 8883 PreDefFile: ./predefinedTopic.conf RootCApath: (null) RootCAfile: (null) CertKey: (null) PrivateKey: (null) 20180724 064112.491 SEARCHGW <--- Client 01 00 20180724 064112.491 GWINFO ---> Clients 02 01 20180724 064112.491 CONNECT <--- GatewayTestClient 04 04 01 00 3C 47 61 74 65 77 61 79 54 65 73 74 43 6C 69 65 6E 74 20180724 064112.862 CONNECT ===> GatewayTestClient 10 1D 00 04 4D 51 54 54 04 02 00 3C 00 11 47 61 74 65 77 61 79 54 65 73 74 43 6C 69 65 6E 74 20180724 064113.067 CONNACK <=== GatewayTestClient 20 02 00 00 20180724 064113.067 CONNACK ---> GatewayTestClient 05 00 20180724 064113.067 SUBSCRIBE 0001 <--- GatewayTestClient 12 20 00 01 74 79 34 74 77 2F 74 6F 70 69 63 31 20180724 064113.067 SUBSCRIBE 0002 <--- GatewayTestClient 12 20 00 02 74 79 34 74 77 2F 74 6F 70 69 63 32 20180724 064113.067 SUBSCRIBE 0001 ===> GatewayTestClient 82 11 00 01 00 0C 74 79 34 74 77 2F 74 6F 70 69 63 31 01 20180724 064113.067 SUBSCRIBE 0002 ===> GatewayTestClient 82 11 00 02 00 0C 74 79 34 74 77 2F 74 6F 70 69 63 32 01 20180724 064113.271 SUBACK 0001 <=== GatewayTestClient 90 03 00 01 01 20180724 064113.271 SUBACK 0001 ---> GatewayTestClient 13 20 00 01 00 01 00 20180724 064113.476 SUBACK 0002 <=== GatewayTestClient 90 03 00 02 01 20180724 064113.476 SUBACK 0002 ---> GatewayTestClient 13 20 00 02 00 02 00 20180724 064118.741 SUBSCRIBE 0003 <--- GatewayTestClient 12 21 00 03 00 01 20180724 064118.741 SUBSCRIBE 0003 ===> GatewayTestClient 82 1B 00 03 00 16 74 79 34 74 77 2F 70 72 65 64 65 66 69 6E 65 64 54 6F 70 69 63 31 01 20180724 064119.006 SUBACK 0003 <=== GatewayTestClient 90 03 00 03 01 20180724 064119.006 SUBACK 0003 ---> GatewayTestClient 13 20 00 01 00 03 00** |
Thank you for your information. |
Sorry for my delayed answer, but I was on vacations. We are testing last GW version we just downloaded. When we start the GW we see the prompt:
We try to subscribe predefined topic 1:
And all works as expected, but if we disconect from de GW and try to subscribe again we get the error
The GW log shows:
If we stop the GW and relaunch it again, we can subscribe to the topic. But it only works the first time, then the error occurs. Thanks in advance for your support. |
Hi, |
Hi!
We are trying to used "predefined topics" new feature. We enable PredefinedTopic usage on "gateway.conf" and let "predefinedTopic.conf" as the one that its provide as an example.
Then we try to subscribe using the command line using the following command
./mqtt-sn-sub -p 5223 -T 1 c -q 1 -i "GatewayTestClient"
or
./mqtt-sn-sub -p 5223 -T "1" c -q 1 -i "GatewayTestClient"
but we get an error:
ERROR SUBSCRIBE error: Rejected: not supported
The GW log shows
Any help is wellcome!
Thanks in advance
The text was updated successfully, but these errors were encountered: