2021-10-12 01:10 AM
Hi, I am really new on STM32 area. I have 6 devices which communicate in RS232 Level.I need to understand that which devices is communicating.
In Arduino there is a if(Serial.available()) about it. In STM32 how can I do that. Thank you so much
2021-10-12 08:48 PM
Serial.available()
Description
Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
STM32 does not have a built in system like this. You will need to manage the UART connection yourself, receive characters, store them in a buffer, etc.
2021-10-12 10:11 PM
There are some STM32 supported in arduino world, that should be a shortcut for your migration.