Skip to main content
AALPT.1
Visitor II
October 12, 2021
Question

STM32 SERİAL AVAİLABLE

  • October 12, 2021
  • 2 replies
  • 914 views

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
Super User
October 13, 2021

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
October 13, 2021

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