Nov 20, 2018
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
03:08 AM
Hi,
Hello when we receive one char on rx pin we use api ch = UART_1_GetChar();
Using any sensor data (IMU) It receive strings kind of thing Ex: #YPR=-2.87,2.39,96.22
so how to save this string using API ? Which API should be used?
Solved! Go to Solution.
Labels
1 Solution
Nov 20, 2018
10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
10:45 AM
2 Replies
Nov 20, 2018
04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
04:54 AM
There is no API for reading strings from UART.
I would suggest you to define an End-Of-String character which will indicate where to stop processing for the current string. Usual values are \n or \r.
Bob
Nov 20, 2018
10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
10:45 AM