Question
Getting string by UART Receive
Hi everyone.
I am sending string data from PC and I want it get with UART of STM32F1xx but as you know I can only have 1 character.
For example I am sending "234" as a string from PC, but I can see only ascii character of only 2 (ascii code of 2 is 50).
I can transmit data as a string on UART. But I can not receive.
Do you know anyone solution method of this problem?
uint8_t UartRxData[10];
//(... 234 comes from PC as a string...)
HAL_UART_Receive_IT(&huart2, (uint8_t*)&UartRxData, 1);
//(result is 50... mean is ascii code of 2)
Thanks and regards
