Skip to content

IPV6 for PDP Context (IDFGH-12084) #508

Closed
@yanmartins

Description

@yanmartins

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hello,

I use the esp-modem library to create a class for a generic DCE modem.

The function present in esp_modem_command_library uses the global PDP context.

command_result set_pdp_context(CommandableIf *t, PdpContext &pdp, uint32_t timeout_ms)
{
     ESP_LOGV(TAG, "%s", __func__ );
     std::string pdp_command = "AT+CGDCONT=" + std::to_string(pdp.context_id) +
                               ",\"" + pdp.protocol_type + "\",\"" + pdp.apn + "\"\r";
     return generic_command_common(t, pdp_command, timeout_ms);
}

My generic class also has an implementation of the CGDCONT command, but at some point, the above function is invoked and uses the global pdp struct from the ESP library.

Is there any way for me to set this PDP value? Because the protocol_type value is fixed to "IP" within the struct. And I want to change it to support IPV6.

Also, is there any other configuration I should do to accept IPV6?

Thanks

Metadata

Metadata

Assignees

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