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

UART CALLBACK

Is there a callback or interrupt that i can use to process the data recieved via UART for Raspberry Pi

Parents Reply
  • 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

Children
Related