'Sending AT commands over UART

My problem is sending AT commands over UART. I am working with STM32 IDE. I have the hardware: STM32L476 with a sensor shield together with the ESP01 Wifi module.

I got the hardware to work and can already send the first AT command over Uart to ESP01. When I try other commands AT+RST or AT+GMR I don't get any response back.

I use this code to send over UART to ESP01.

void ATsend (char out[]){
    HAL_UART_Transmit(&huart4, (uint8_t *)out, strlen(out), 1000);
}

The code below works fine

ATsend("AT");

I get the response OK.

When I try this I get no response.

ATsend("AT+RST")

Any tips?

c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source