This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thread MQTT-SN Example publish and subscribe can not combine operations

Hi Nordic Team:

1.  I use this example "Thread MQTT-SN Example".

after i compile the code than i do the step below

1.Build the example according to the instructions in Building examples.
2.Turn the MQTT-SN gateway on according to the instructions in Thread Border Router.
3.Program a development board with the MQTT-SN Subscriber application.
4.Program another development board with the MQTT-SN Publisher application.
5.Let the clients find the MQTT-SN gateway by pressing Button 2 on both boards.

one of the FTD get kick out , when i do the 5 step

and the error message show up
"0> <error> app: Message of unsupported type has been received.
0>
0> <error> app: MQTT-SN message could not be processed."

Use one device of the MQTT-SN Subscriber application and other one device of the MQTT-SN Publisher application. (one publish device, one subscribe device)

I get the message_type is 1.

so the border router seems to be can only connect to one FTD

if i connect two devices in the same time one of FTD will be kick of

is there any reason may cause that? Or i miss some step need to be done?

2. if using two subscribers well the same problems too. do you have any advice that can solve the problems of two subscribers? Pls kindly help advise how to solve it?

3.I follow the WEB steps below Playing with Thread and MQTT-SN on Nordic nRF52840, I follow the WEB steps below Playing with Thread and MQTT-SN on Nordic nRF52840, Now I have two devices, wanted to combine operations publish and subscribe at the same time in the device.
Pls kindly help advise how to solve it?

Best Regards,

Rick.

Parents
  • Hi,

    I tested with one subscriber and one publisher client, and followed the steps in the example. This works well and I'm able to subscribe to topics on one of the devices and publish from another device. I'm still seeing the "message could not be processed" error, but this does not affect the functionality.

    The example is only written for a single publisher and subscriber. 

    I will look into if it is possible to merge the publisher and subscriber examples to run on a single board.

    Best regards,
    Jørgen

Reply
  • Hi,

    I tested with one subscriber and one publisher client, and followed the steps in the example. This works well and I'm able to subscribe to topics on one of the devices and publish from another device. I'm still seeing the "message could not be processed" error, but this does not affect the functionality.

    The example is only written for a single publisher and subscriber. 

    I will look into if it is possible to merge the publisher and subscriber examples to run on a single board.

    Best regards,
    Jørgen

Children
No Data
Related