Call AT command from self-defined AT Command

dmitry.m7
Posts: 1
Joined: Thu Aug 15, 2024 9:36 am

Call AT command from self-defined AT Command

Postby dmitry.m7 » Thu Aug 15, 2024 10:56 am

Hi!

How can I call other AT command from self-defined AT command?
For, example

Code: Select all

at_custom_cmd.c

static uint8_t at_test_cmd_test(uint8_t *cmd_name) {                                                                                                                                                                 
  uint8_t buffer[64] = {0};                                                                                                                                     
  snprintf((char *)buffer, 64, "test command: <AT%s=?> is executed\r\n", cmd_name);                                                                             
  esp_at_port_write_data(buffer, strlen((char *)buffer));    
  
  CALL("AT+HTTPCGET=params")    <-- HOW Can I do it?                                                                                                                                                                                                                                                              
  
  return ESP_AT_RESULT_CODE_OK;                                                                                                                             
}                    

Who is online

Users browsing this forum: No registered users and 18 guests