Hi I am using BLE Mesh V4.0 and Stack V 16.0.0
I have included UART functionality in light switch server code to interface a sensor.Now upon receiving 5 bytes from UART I want to publish that data over mesh to client node.
But as soon as I send 5 bytes from UART I receive below error in attachment.Please help.
Note : Where as if I call app_onoff_status_publish2(&m_onoff_server_0) from button_event_handler it does work.But I don't want dependency of button.
void uart_event_handle(app_uart_evt_t * p_event) { static uint8_t data_array[244]; static uint8_t index = 0; uint32_t err_code; switch (p_event->evt_type) { case APP_UART_DATA_READY: UNUSED_VARIABLE(app_uart_get(&data_array[index])); index++; __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "--index=%d-----\n",index); break; } if(index==5) { app_onoff_status_publish(&m_onoff_server_0); index=0; } }