cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 SERİAL AVAİLABLE

AALPT.1
Associate

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

2 REPLIES 2
TDK
Guru

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.

If you feel a post has answered your question, please click "Accept as Solution".
S.Ma
Principal

There are some STM32 supported in arduino world, that should be a shortcut for your migration.