Barcode reader and STM32 Nucleo board

Hi
I am trying to read from a bar code scanner with my stm32 NucleoF446RE.
The barcode scanner I am using is GM67 1D 2D Bar Code Scanner .My supply voltage is 5V , using UART 3 . I already have the mbed_app.json file.

the code I followed is BufferedSerial - API references and tutorials | Mbed OS 6 Documentation
#include “mbed.h”
#define MAXIMUM_BUFFER_SIZE 32

static BufferedSerial my_scanner(PC_10, PC_11); // tx, rx

// Application buffer to receive the data

char buf[MAXIMUM_BUFFER_SIZE] = {0};

int main()

{

       // Set desired properties (9600-8-N-1).

        my_scanner.set_baud(9600);

        my_scanner.set_format(8,BufferedSerial::None,1);

         printf("Scan an item \n\n");

while(1)

{
     
        if (uint32_t num = my_scanner.read(buf, sizeof(buf)))
         {

              
               my_scanner.write(buf, num);
               printf("%s\n", buf);  


          }
         

}

}

I am not getting any readings from the device

Hello,

recheck UART configuration and wiring must be crossed.

BR, Jan