This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Serial Reception

Take a look at a following code


void fmc_serial_rx_cb(const uint8_t* p_data, uint32_t length)

{
__LOG(LOG_SRC_APP, LOG_LEVEL_INFO,"\n-------------SERIAL RECIEVED : %s--------------\n",*p_data);
}

void fmc_uart_init()
{__LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "----- INITIALIZING SERIAL UART-----\n");

nrf_mesh_serial_init(&fmc_serial_rx_cb);
ERROR_CHECK(nrf_mesh_serial_enable());
printf("UART STARTED");

}

I am trying to write data from rpi to nrf52. what I want to do is that whenever serial data is recieved the node shud stop for a second and take care of the serial data, Like an interrupt, but the callback is not being called.

Parents Reply Children
No Data
Related