Hi, Ashu
you probably need to use the “pc.printf” instead.
I’m using the USB Mbed programmer and it works well !
// Serial via USB for debugging only
Serial pc(USBTX,USBRX);
...
pc.baud(115200);
pc.printf("TTN mDot LoRa Temperature sensor starting ... \r\n");
pc.printf("Network Address ");
netAddress = dot->getNetworkAddress();
for (std::vector<uint8_t>::iterator it = netAddress.begin() ; it != netAddress.end(); ++it)
pc.printf("%2.2x",*it );
cheers
Rico