UART_WaitOnFlagUntilTimeout
i was debugging code HAL_uart_Receive (); sprintf(command, "AT+CMGL=\"ALL\"\r\n");//read all sms HAL_UART_Transmit(&huart1, (uint8_t *)command, strlen(command), 10); // HAL_Delay(100); HAL_UART_Receive(&huart1, RXbuffer, ...