Is there a callback or interrupt that i can use to process the data recieved via UART for Raspberry Pi
Is there a callback or interrupt that i can use to process the data recieved via UART for Raspberry Pi
Yes. Read the documentation. You can process the data on RX done events.
Yes. Read the documentation. You can process the data on RX done events.
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");
}
Checkout this segment , What am i doing wrong
Sorry I didn't know you were using the mesh SDK. I'm not familiar with that SDK.