<?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>Issue with sending message from client to client in mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63063/issue-with-sending-message-from-client-to-client-in-mesh</link><description>Hi, 
 I tried a light-switch example from SDK for mesh ver 4.1.0 on two nRF52840 DKs(first board with client and the second with server). I configured them with nRF Mesh app from Android and the example is works without problems. 
 But now, I am trying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Jul 2020 14:45:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63063/issue-with-sending-message-from-client-to-client-in-mesh" /><item><title>RE: Issue with sending message from client to client in mesh</title><link>https://devzone.nordicsemi.com/thread/258161?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 14:45:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3232dcc6-d53f-4602-920c-0379cda0511a</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Why do you have two of the same callback?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understand what you are trying to do here, could you elaborate?&lt;/p&gt;
&lt;p&gt;Can you also describe how you configured it in the nRF Mesh app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with sending message from client to client in mesh</title><link>https://devzone.nordicsemi.com/thread/258043?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 09:51:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a2a982-15eb-4584-827a-62e7eee97a70</guid><dc:creator>Liv</dc:creator><description>&lt;p&gt;Hi Mttrinh, &lt;span class="name"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for reply. I followed the steps you mentioned and now it works. But now I have another issue with action button in periodic publishing like in this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* This callback is called periodically if model is configured for periodic publishing */
static void app_gen_onoff_client_publish_interval_cb(access_model_handle_t handle, void * p_self)
{
     __LOG(LOG_SRC_APP, LOG_LEVEL_WARN, &amp;quot;Publish desired message here.\n&amp;quot;);
    
      button_event_handler(1);

//    uint32_t status = NRF_SUCCESS;
//    generic_onoff_set_params_t set_params;
//    model_transition_t transition_params;
//    static uint8_t tid = 0;
//
//    set_params.tid = tid++;
//    transition_params.delay_ms = APP_ONOFF_DELAY_MS;
//    transition_params.transition_time_ms = APP_ONOFF_TRANSITION_TIME_MS;
//
//           nrf_delay_ms(3000);
//
//          set_params.on_off = !set_params.on_off;
//
//         __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Sending msg: ONOFF SET %d\n&amp;quot;, set_params.on_off);
//        (void)access_model_reliable_cancel(m_clients[1].model_handle);
//            status = generic_onoff_client_set(&amp;amp;m_clients[1], &amp;amp;set_params, &amp;amp;transition_params);
//            hal_led_pin_set(ONOFF_SERVER_2_LED, set_params.on_off);
//            //break;
//
//        switch (status)
//    {
//        case NRF_SUCCESS:
//            break;
//
//        case NRF_ERROR_NO_MEM:
//        case NRF_ERROR_BUSY:
//        case NRF_ERROR_INVALID_STATE:
//            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Client cannot send\n&amp;quot;);
//            hal_led_blink_ms(LEDS_MASK, LED_BLINK_SHORT_INTERVAL_MS, LED_BLINK_CNT_NO_REPLY);
//            break;
//
//        case NRF_ERROR_INVALID_PARAM:
//            /* Publication not enabled for this client. One (or more) of the following is wrong:
//             * - An application key is missing, or there is no application key bound to the model
//             * - The client does not have its publication state set
//             *
//             * It is the provisioner that adds an application key, binds it to the model and sets
//             * the model&amp;#39;s publication state.
//             */
//            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Publication not configured for client\n&amp;quot;);
//            break;
//
//        default:
//            ERROR_CHECK(status);
//            break;
//    }
}/* This callback is called periodically if model is configured for periodic publishing */
static void app_gen_onoff_client_publish_interval_cb(access_model_handle_t handle, void * p_self)
{
     __LOG(LOG_SRC_APP, LOG_LEVEL_WARN, &amp;quot;Publish desired message here.\n&amp;quot;);
    
      button_event_handler(1);

//    uint32_t status = NRF_SUCCESS;
//    generic_onoff_set_params_t set_params;
//    model_transition_t transition_params;
//    static uint8_t tid = 0;
//
//    set_params.tid = tid++;
//    transition_params.delay_ms = APP_ONOFF_DELAY_MS;
//    transition_params.transition_time_ms = APP_ONOFF_TRANSITION_TIME_MS;
//
//           nrf_delay_ms(3000);
//
//          set_params.on_off = !set_params.on_off;
//
//         __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Sending msg: ONOFF SET %d\n&amp;quot;, set_params.on_off);
//        (void)access_model_reliable_cancel(m_clients[1].model_handle);
//            status = generic_onoff_client_set(&amp;amp;m_clients[1], &amp;amp;set_params, &amp;amp;transition_params);
//            hal_led_pin_set(ONOFF_SERVER_2_LED, set_params.on_off);
//            //break;
//
//        switch (status)
//    {
//        case NRF_SUCCESS:
//            break;
//
//        case NRF_ERROR_NO_MEM:
//        case NRF_ERROR_BUSY:
//        case NRF_ERROR_INVALID_STATE:
//            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Client cannot send\n&amp;quot;);
//            hal_led_blink_ms(LEDS_MASK, LED_BLINK_SHORT_INTERVAL_MS, LED_BLINK_CNT_NO_REPLY);
//            break;
//
//        case NRF_ERROR_INVALID_PARAM:
//            /* Publication not enabled for this client. One (or more) of the following is wrong:
//             * - An application key is missing, or there is no application key bound to the model
//             * - The client does not have its publication state set
//             *
//             * It is the provisioner that adds an application key, binds it to the model and sets
//             * the model&amp;#39;s publication state.
//             */
//            __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, &amp;quot;Publication not configured for client\n&amp;quot;);
//            break;
//
//        default:
//            ERROR_CHECK(status);
//            break;
//    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I configured them with nRF Mesh app and after that in SES console print &amp;quot;Publication not configured for client 2&amp;quot;&amp;nbsp; from client who publishes:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4760.ss.png" /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t now where is the problem.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Liv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with sending message from client to client in mesh</title><link>https://devzone.nordicsemi.com/thread/257931?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 16:36:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d43ad61c-4b1b-4783-8edf-7ca9bb623314</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To be able to send from client example to client example, you need to add a server model to the other client example. The server model needs to be on a different element than the client model, so you need to add another element. Also, remember to increase the model count and element count in your configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>