Closed yanmartins closed 3 months ago
Hi @yanmartins
Yes, this API uses pre-configured PDP context. To update it, you can call configure_pdp_context()
instead:
auto new_pdp = std::make_unique<PdpContext>("APN");
new_pdp->protocol_type = "IP6";
dce->get_module()->configure_pdp_context(std::move(new_pdp));
Unfortunately, we don't have an explicit constructor with the protocol, so you'll to update it after creating.
To enable IPv6 protocol in PPP session, you'd have enable: CONFIG_LWIP_PPP_ENABLE_IPV6
(off by default).
@yanmartins I think this can be closed (please reopen if any other question or request)
Answers checklist.
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.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