Subscribe to multiple addresses on the same model

My app uses mesh shell to subscribe to messages on a custom model and that works just fine

I need to subscribe to a different address  on the same model but get an error 

Here is what I do

mesh init

mesh dst 0x66

provision

add keys

bind keys to model

uart:~$ mesh mod-sub-add 0x66 0xC002 0x1003 0x0a0a
Model subscription was successful
uart:~$ mesh mod-sub-add 0x66 0xC003 0x1003 0x0a0a
Model Subscription Add failed with status 0x05
uart:~$ mesh mod-sub-add 0x66 0x66 0x1003 0x0a0a
Unable to send Model Subscription Add (err -22)

Is it even possible to do what I'm trying to accomplish?

Why am I getting 2 different error codes when I configure subscription on node address (0x66) vs just a different address 0xC003?

Is there a way to accomplish what I need?

Thanks

Parents
  • I'm in Zephyr 1.9.1

    I have a custom  model and provision using mesh  module. . The basic question is

    Is it possible to subscribe to the same model twice on 2 different addresses?

    mesh mod-sub-add is one of the mesh module commands. It succeeds when I subscribe the first time but fails it I try to subscribe again. The failure is different. If I try to subscribe to the address that is the same as the unicast address of the device - I status 5

    If I try to subscribe to another address (0xC003) I get error -22 

Reply
  • I'm in Zephyr 1.9.1

    I have a custom  model and provision using mesh  module. . The basic question is

    Is it possible to subscribe to the same model twice on 2 different addresses?

    mesh mod-sub-add is one of the mesh module commands. It succeeds when I subscribe the first time but fails it I try to subscribe again. The failure is different. If I try to subscribe to the address that is the same as the unicast address of the device - I status 5

    If I try to subscribe to another address (0xC003) I get error -22 

Children
Related