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

Publish error in Sensor Example

Hi,

I am trying to run the sensor example as provided in the Mesh SDK. I am getting the log as mentioned:

13691970>, main.c, 475, mocked motion sensed = 0%
<t: 13691973>, app_sensor_utils.c, 1114, ERR: publication failed (0x0007 (7)) = (status)

I don't understand why I am getting this error.

Any suggestion will be appreciated.

Parents Reply
  • Hi,

    The way mesh models work, is that they have a set of subscriptions, which is the addresses they listen for messages to, and they have a publication address, which is the address they use when sending messages.

    That means, you need to configure the Publish Address as well, for any node that needs to publish data.

    I see that our documentation on Infocenter is not properly explaining the required setup for the sensor example, as the "Setting publication and subscription with nRF Mesh" section of the Examples documentation only mentions setting publication address for the client, and setting up the subscriptions on the server. But the sensor server is also capable of publishing status updates that are not a response to client requests, and for that it needs to have a publication address.

    Regards,
    Terje

Children
Related