Send an array of integers over UART without converting them to string and without the for loop
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 4:33 AM
Is there any way to transmit an array of integers without converting an array of integers into string?
For loop will take time. I want to transmit an array in one go.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-07-24 5:14 AM - edited 2023-07-24 5:16 AM
so just send your int array...
HAL_UART_Transmit(&huartY, (uint8_t *)array, sizeof(array), 5);
If you feel a post has answered your question, please click "Accept as Solution".
