Skip to content

Feature Request: Allow esp_at_get_para_as_str() to parse unquoted string parameters #958

@rohitsam

Description

@rohitsam

Is your feature request related to a problem?

currently, esp_at_get_para_as_str() in ESP-AT only supports parsing strings that are enclosed in double quotes (e.g., AT+MYCMD="Hello"\r\n).
If a parameter is passed without quotes (e.g., AT+MYCMD=Hello\r\n), it is not recognized as a valid string.

Is there a way to do this in the currrent version of esp-at

Describe the solution you'd like.

Update esp_at_get_para_as_str() to check for quotes, and if none are found, treat the token as an unquoted string.

Describe alternatives you've considered.

No response

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions