STM32 SERİAL AVAİLABLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 1: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
- Labels:
-
STM32duino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 8: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-12 10:11 PM
There are some STM32 supported in arduino world, that should be a shortcut for your migration.
