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 

  • Update


    It is possible to send messages to individual devices if publication  address of the device that sends the message is changed to the address of the recipient device
    For example
    Set publication address to 0xC001 
    Subscribe to that address on multiple devices
    Send message to 0xC001
    All subscribed devices receive the message
    Change publication parameters of the sending device to the address of one of the devices i.e 0x0001
    Send message 
    Only device with address 0x0001 receives the message
    This ticket can be closed. 
    Thank you

  • Thank you for the update.

    Ticket closed.

    Br,
    Joakim

Reply Children
No Data
Related