<?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>Battery model for mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45327/battery-model-for-mesh</link><description>Hey 
 I would like know how can i add battery model for mesh. I have seen the Battery indicator in normal BLE sdk, now I want to implement in mesh sdk in the form of model. How can i achieve it, I want the data to be sent form client to server. I am using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Oct 2020 10:57:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45327/battery-model-for-mesh" /><item><title>RE: Battery model for mesh</title><link>https://devzone.nordicsemi.com/thread/273693?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 10:57:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ca4a62-0d0e-4e51-8121-68307dedab4a</guid><dc:creator>ivnn</dc:creator><description>&lt;p&gt;hi, could you pls update link for battery model implementation or examples which be useful as a references?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery model for mesh</title><link>https://devzone.nordicsemi.com/thread/178552?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2019 06:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:792c1320-bb5b-40c5-b32b-4de0c722b912</guid><dc:creator>P Sumanth</dc:creator><description>&lt;p&gt;Thank you for your response&lt;/p&gt;
&lt;p&gt;I followed the procedure of how to implement the new models in light switch client program. I created two new files battery_client_model.c and&amp;nbsp;&lt;span&gt;battery_client_model.h (attached below) and added the battery model(model id 0x100D) as generic_onoff_client model and respective call back functions,structures etc. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am unable to get that model in Nordic MESH app, only client model is visible. Please go through the code attached below and let me where i have done wrong&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/battery_5F00_Client_5F00_model.c"&gt;devzone.nordicsemi.com/.../battery_5F00_Client_5F00_model.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/battery_5F00_client_5F00_model.h"&gt;devzone.nordicsemi.com/.../battery_5F00_client_5F00_model.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2055.main.c"&gt;devzone.nordicsemi.com/.../2055.main.c&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/generic_5F00_onoff_5F00_common.h"&gt;devzone.nordicsemi.com/.../generic_5F00_onoff_5F00_common.h&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/generic_5F00_onoff_5F00_messages.h"&gt;devzone.nordicsemi.com/.../generic_5F00_onoff_5F00_messages.h&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The above attached files are modified files for adding the battery_model, where major changes are in main.c battery_client_model.c/.h and minor changes in generic_onoff_messages and common.h files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sumanth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery model for mesh</title><link>https://devzone.nordicsemi.com/thread/178327?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 12:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d552a24c-7921-4833-93d7-2e82ce16b6bd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK documentation describe &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_doc_getting_started_how_to_models"&gt;how to implement new models&lt;/a&gt;. There is a Generic Battery model described in the &lt;a href="https://www.bluetooth.com/specifications/mesh-specifications"&gt;Mesh Model specifications&lt;/a&gt;, please see section 3.1.6.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>