NRF52833 Adding UART to Thead MQTTSN client publisher

Good day

I need to add UART to a project based "Thead MQTTSN client publisher" example code. The device needs to receive data over UART and then send the data to the MQTT broker. I have tried to port the code over from the peripheral UART example from the same SDK, but to no avail. Where as most of the SDK's examples perfectly illustrate their concept, it can sometimes be a nightmare to merge two examples.

Could you please provide some guidance on how to add UART capabilities to the Thread example.

Project is being done on a NRF52833 chip with version 4.1 of the Thread SDK.

Kind regards

Parents Reply
  • The first 3 errors is because you have not enabled app_uart in your sdk_config.h file:

    // <e> APP_UART_ENABLED - app_uart - UART driver
    //==========================================================
    #ifndef APP_UART_ENABLED
    #define APP_UART_ENABLED 1
    #endif
    // <o> APP_UART_DRIVER_INSTANCE  - UART instance used
     
    // <0=> 0 
    
    #ifndef APP_UART_DRIVER_INSTANCE
    #define APP_UART_DRIVER_INSTANCE 0
    #endif
    
    // </e>

    The last 3 errors seems to be because the thread_utils.c file calls otCliUartInit(), which is not implemented after you changed the transport library file. If you comment out that function call, the application should compile successfully. The CLI would anyway not be available without the transport.

Children
Related