Skip to main content
AALPT.1
Visitor II
Oct 12, 2021 8:10 AM UTC
Question

STM32 SERİAL AVAİLABLE

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

This topic has been closed for replies.

2 replies

TDK
Oct 13, 2021 3:48 AM UTC

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
Oct 13, 2021 5:11 AM UTC

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