-
• #2
Hi. Yes, what you're doing is right - However because the 'console' (the interactive command-line) is on USB, the callback is disabled.
Try moving the console out of the way with
Serial1.setConsole()
, and it should work. You'll then have to reset the board before you can program it again though (unless you program it via Serial1).However you're doing the
print
, which will then appear on Serial1 (pins A9/A10). If you wanted to echo the data back down USB then you could do:USB.write("<USB> "+data+"\r\n")
.Hope that helps!
-
• #3
Gordon, great, thanks!
Good day
Is micro USB same as USB described in docs ?
Ask because i cant add listener to read data incoming via micro usb
Then connect to PC and send data using special tools to COM port, for example:
and receive only
As we see, listener did not fire ...