<?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>what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46007/what-api-functions-to-use-in-this-bluetooth-mesh-application</link><description>I am very new to Nordic boards, so my apologies first for my ignorance.I recently bought Nrf52840 boards and I want to build a very simple Bluetooth mesh application but I am overwhelmed with the amount of information in the documentations. 
 What I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2019 16:39:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46007/what-api-functions-to-use-in-this-bluetooth-mesh-application" /><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181899?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 16:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f242c7a9-9e9c-47ed-8078-0420a73d075f</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Thank you, I will try to play with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181809?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 10:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b189670-d6be-43d1-9c94-c9e0f5f97c86</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;strong&gt;Next week, week 15 will have less staffing due to Easter Holiday. You&amp;nbsp;may expect a delayed answer from the support team.&lt;/strong&gt;&lt;/p&gt;
&lt;hr /&gt;[quote user="davidm"]Thank you but, I&amp;nbsp; already went through that Novelbits tutorial,my apologies&amp;nbsp;I should have mentioned in my previous post.[/quote]
&lt;p&gt;&amp;nbsp;Ok, I see. No worries, then you have the basic knowledge about the Mesh SDK.&lt;/p&gt;
[quote user="davidm"]What function would I use to publish a&amp;nbsp; message string say &amp;quot;abc&amp;quot;&amp;nbsp; to the server model? And on the server model (subscribing to that particular address) what API function would I use to get the message sent by the client?[/quote]
&lt;p&gt;You have to change the following in&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;models\model_spec\generic_onoff\include\generic_onoff_common.h&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** Structure containing value of the OnOff state */
typedef struct
{
    //bool on_off;                                            /**&amp;lt; State to set */
    uint8_t on_off;
    uint8_t tid;                                            /**&amp;lt; Transaction ID */
} generic_onoff_state_t;

/** Mandatory parameters for the Generic OnOff Set message. */
typedef struct
{
    //bool on_off;                                            /**&amp;lt; State to set */
    uint8_t on_off;
    uint8_t tid;                                            /**&amp;lt; Transaction ID */
} generic_onoff_set_params_t;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Also, have a look at these files&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;examples\common\include\app_onoff.h
examples\common\src\app_onoff.c&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Unfortunately, I have not been able to test it yet due to the support load.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181736?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 03:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdea9aba-7f9c-41d3-b2ac-4a959699eec0</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Thank you but, I&amp;nbsp; already went through that Novelbits tutorial,my apologies&amp;nbsp;I should have mentioned in my previous post.&lt;/p&gt;
&lt;p&gt;Let me make the question very specific, in Light switch example,&amp;nbsp;generic_onoff_client_set function in client publish the message to the server model in On/Of (0/1) fashion, so not sure if that is enough for what I want. What function would I use to publish a&amp;nbsp; message string say &amp;quot;abc&amp;quot;&amp;nbsp; to the server model? And on the server model (subscribing to that particular address) what API function would I use to get the message sent by the client?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181541?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 10:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ea1ca75-d7c9-4319-b3cc-dc1310ac960a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but I don&amp;#39;t have any high-level guide for our API nor any tutorials (strangely). I would, however, given that you are new to the boards, recommend having a look at &lt;a href="https://www.novelbits.io/category/bluetooth-mesh/?order=asc"&gt;NovelBits tutorial on Mesh&lt;/a&gt;. It covers theory in the first three parts and then goes over to our SDK from part four.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you find out that mesh is not the way to go, then I recommend looking at our &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/index"&gt;SDK documentation&lt;/a&gt; which includes &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/examples"&gt;other examples&lt;/a&gt; (maybe more or less fitting). Also, have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30338/getting-started-for-beginners"&gt;this thread&lt;/a&gt;. But you must be aware that SDK for Mesh uses models instead of services in BLE (standard SDK).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181439?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 03:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4a3f0fa-ee09-47f6-a0b7-d64ba0c9d82b</guid><dc:creator>davidm</dc:creator><description>&lt;p&gt;Thank you Oyvind, I took some time to go through the docs you shared. I went through the examples, it seems like the light switch might be close to what I need but it is still a bit complex compared to what I need to build. Whenever you get a chance any high-level guidance with API functions would be helpful and i will figure it out the rest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what API functions to use in this Bluetooth mesh application?</title><link>https://devzone.nordicsemi.com/thread/181354?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 14:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:210e374f-621b-4849-ae52-60f078f44576</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I&amp;#39;m sorry, I have not had time to answer your&amp;nbsp;questions&amp;nbsp;today, but will assist&amp;nbsp;tomorrow. In the&amp;nbsp;mean-time, have&amp;nbsp;a&amp;nbsp;look&amp;nbsp;at our &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_examples_README"&gt;examples&lt;/a&gt; in the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/index"&gt;nRF SDK for Mesh&lt;/a&gt;&amp;nbsp;(documentation) and &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Software/nRF5-SDK-for-Mesh/Download#infotabs"&gt;download&lt;/a&gt;. Also, have a look at this &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/introducing-nrf5-sdk-for-mesh"&gt;Introduction to Bluetooth Mesh&lt;/a&gt;&amp;nbsp;(although&amp;nbsp;a little&amp;nbsp;old).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The examples we provide,&amp;nbsp;should be a sufficient starting point, see if you can find one as a starting point for your&amp;nbsp;application. DevZone also provides lots of help with people asking the same questions.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will get back to you tomorrow.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>