<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64913/publish-error-in-sensor-example</link><description>Hi, 
 
 I am trying to run the sensor example as provided in the Mesh SDK. I am getting the log as mentioned: 
 13691970&amp;gt;, main.c, 475, mocked motion sensed = 0% &amp;lt;t: 13691973&amp;gt;, app_sensor_utils.c, 1114, ERR: publication failed (0x0007 (7)) = (status)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 06:36:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64913/publish-error-in-sensor-example" /><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/266620?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 06:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4341e4-228e-45ff-ba14-f4cc1bb98fba</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It worked. Thanks for your support.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zolu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/266567?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 15:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57afeac8-21a4-4c38-bf34-a2198f9b7c9d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;That means, you need to configure the Publish Address as well, for any node that needs to publish data.&lt;/p&gt;
&lt;p&gt;I see that our documentation on Infocenter is not properly explaining the required setup for the sensor example, as the &amp;quot;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.2.0%2Fmd_examples_README.html&amp;amp;anchor=nrf-mesh-mobile-app-publication"&gt;Setting publication and subscription with nRF Mesh&lt;/a&gt;&amp;quot; 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.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265964?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 12:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcc902eb-a8fe-4313-a8ce-58662831e9cc</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sensor Server:&lt;/p&gt;
&lt;p&gt;Binding to AppKey1&lt;/p&gt;
&lt;p&gt;Subscription address 0xC00A&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sensor Setup Server:&lt;/p&gt;
&lt;p&gt;Binding to AppKey1&lt;/p&gt;
&lt;p&gt;Subscription address 0xC00A&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I have followed the Testing the example section. I am using nRF Mesh App for Android for provisioning. And I am testing the example on nRF52 DK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zolu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265922?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 09:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6b325d-1c65-4e40-a477-4c91b8aac44f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error message that you posted was from the sensor server model, not from the sensor client model. What configuration do you do for the sensor server?&lt;/p&gt;
&lt;p&gt;Are you following the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.2.0%2Fmd_examples_sensor_README.html&amp;amp;anchor=fast_cadence_example_testing"&gt;Testing the example&lt;/a&gt; section of the sensor example documentation? What provisioner, and how many and what boards are you using? If I get all the details how you test it, I can try to reproduce.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265524?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 11:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1debb945-c372-491f-9dca-f869638d529f</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Sensor client:&lt;/p&gt;
&lt;p&gt;binding to Application Key1&lt;/p&gt;
&lt;p&gt;Publish Address : 0xC000&lt;/p&gt;
&lt;p&gt;Publish Period : 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265493?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 09:23:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20d2907-a66c-4d1d-a6db-50907ff9133c</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the full configuration of the model?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265487?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 08:37:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a77d694-0182-4274-97c9-dc13a4fc2054</guid><dc:creator>Zolu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have provisioned and configured the device. I have also set the publish address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Publish error in Sensor Example</title><link>https://devzone.nordicsemi.com/thread/265360?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 14:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11d1d70a-aeb5-42d1-bdaa-3028e7a91200</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The reported status value of 7 comes from the call to sensor_server_status_publish(). Looking at the chain of function calls leads to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.2.0%2Fgroup__ACCESS.html&amp;amp;anchor=ga1f010f6f4e2fef3250e7566d40accb3e"&gt;access_model_publish()&lt;/a&gt;, and error value 7, which is &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.0.1%2Fgroup__nrf__error.html&amp;amp;anchor=ga0a5831cf5092e0dd43a01869676ee076"&gt;NRF_ERROR_INVALID_PARAM&lt;/a&gt;, from this API call, means that either the model is not bound to an application key (appkey), or the publish address is not set.&lt;/p&gt;
&lt;p&gt;Have you both provisioned and configured the device? That is, is it configured to use a specific appkey, and is the publish address set on the sensor model?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>