<?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>Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33922/mesh-health-model-send-where</link><description>Hello 
 Im trying to figure out where the health model client sends the health messages. Ive tried doing prints in all of the send methods in health_model_client.c but not getting anything(except for init method..) and Ive set the frequency to 100MS so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jul 2018 08:19:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33922/mesh-health-model-send-where" /><item><title>RE: Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/thread/138448?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 08:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eec3645-492d-48ea-a4cf-2ff6eabc7fff</guid><dc:creator>zhengrui</dc:creator><description>&lt;p&gt;Hi Bjorn ,&lt;/p&gt;
&lt;p&gt;Is there some methods to get health status via client instead of provisioner ?I have tryied it and replaced health_server.c as health_client.c in client demo. I added the&amp;nbsp;&lt;span&gt;&amp;nbsp;app_health_event_cb()&amp;nbsp; in client&amp;#39;s main.c until there is no error when I built it .But it can&amp;#39;t finish the process of configuration ,it is failing.Can you help me?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best weshes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Zhengrui.&lt;/span&gt;&lt;/p&gt;
&lt;div class="author"&gt;
&lt;div class="meta"&gt;&lt;span class="user-name"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="content full threaded-reply-content user-defined-markup"&gt;
&lt;div class="content"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/thread/130861?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 15:28:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c16755c5-f4ca-4cb2-93b2-b8b661d9c41c</guid><dc:creator>mike</dc:creator><description>&lt;p&gt;so then, the provisioner sets the period of how often the client and servers should send their health_messages right in the beginning(in the node setup), in the configuration stage? and then the provisioner never actually request the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/thread/130818?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 13:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:342a011b-53f3-41cd-8226-d244f9aaec5e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I just tested the latest Mesh SDK, added some prints like you have &amp;amp; also noticed the same behavior you did. To figure out where the messages were sent, I added logging to these three functions in health_server.c:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;send_fault_status(), send_attention_status() &amp;amp; send_period_status()&lt;/p&gt;
&lt;p&gt;To enable RTT &amp;amp; logging, I included these header files at the top of health_server.c:&lt;/p&gt;
&lt;p&gt;/* Logging and RTT */&lt;br /&gt;#include &amp;quot;rtt_input.h&amp;quot;&lt;br /&gt;#include &amp;quot;log.h&amp;quot;&lt;/p&gt;
&lt;p&gt;With one provisioner, one client &amp;amp; one server, I noticed that send_fault_status() was called right before: &amp;quot;Node 0x0105 alive with 0 active fault(s), RSSI: -27&amp;quot;&lt;/p&gt;
&lt;p&gt;From my understanding, send_fault_status() is called in both the client &amp;amp; server &amp;amp; then handled inside handle_fault_status() in health_client.c of the provisioner. This function then sets the event type HEALTH_CLIENT_EVT_TYPE_CURRENT_STATUS_RECEIVED &amp;amp; the callback function&amp;nbsp;app_health_event_cb() inside main.c of the provisioner prints the message:&amp;nbsp;&amp;quot;Node 0x%04x alive with %u active fault(s), RSSI: %d\n&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/thread/130561?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 13:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aad6e97e-4f51-46cd-9bc8-319d1ee99c81</guid><dc:creator>mike</dc:creator><description>&lt;p&gt;Hello Im using SDK_FOR_MESH_2.0.1&lt;/p&gt;
&lt;p&gt;I actually can see the health messages being returned to the provisioner with the __LOG print in the &amp;quot;app_health_event_cb&amp;quot;&lt;/p&gt;
&lt;p&gt;And I set the period in node_setup.c under the case :&amp;nbsp;NODE_SETUP_CONFIG_PUBLICATION_HEALTH&lt;/p&gt;
&lt;p&gt;So, I can see that alot of messages are going out and get returned. My question is where does the messages get sent(from the provsioner) As I said I have put out print in all of the methods in health_client.c but I dont get any prints()even tho clearly I can see alot of messages getting returned from the client/servers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Or have I misunderstood the process and the provisioner dont send out any requests for the healthdata at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh Health Model send Where ?</title><link>https://devzone.nordicsemi.com/thread/130545?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 12:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:098a52c5-afe1-4f45-b258-7c9ec0b05d9b</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;If you take a look at&amp;nbsp;health_client.c in the light switch client example in the Mesh SDK v1.0.1, most of the interface functions include a call to either access_model_publish() or reliable_send(). This means that most of these functions can send messages in the mesh access layer.&lt;/p&gt;
&lt;p&gt;Have you tried setting the health period of the client via a call to the&amp;nbsp;health_client_period_set() function in main.c &amp;amp; see if you can see any messages being transferred?&lt;/p&gt;
&lt;p&gt;I believe the problem could be that none of the health client interface functions get called in main.c for example &amp;amp; therefore you are not seeing any messages in your prints.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>