We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74cf04 commit 069d439Copy full SHA for 069d439
drivers/wifi/esp_at/esp.c
@@ -825,7 +825,13 @@ static int cmd_ipd_parse_hdr(struct esp_data *dev,
825
char *remote_ip;
826
long port;
827
828
- err = esp_pull_quoted(&str, str_end, &remote_ip);
+ if (IS_ENABLED(CONFIG_WIFI_ESP_AT_VERSION_1_7)) {
829
+ /* NOT quoted per AT version 1.7.0 */
830
+ err = esp_pull_raw(&str, str_end, &remote_ip);
831
+ } else {
832
+ /* Quoted per AT version 2.1.0/2.2.0 */
833
+ err = esp_pull_quoted(&str, str_end, &remote_ip);
834
+ }
835
if (err) {
836
if (err == -EAGAIN && match_len >= MAX_IPD_LEN) {
837
LOG_ERR("Failed to pull remote_ip");
0 commit comments