@@ -138,11 +138,11 @@ class DCE : public esp_modem::DCE_T<ESP_AT_Module> {
138
138
std::string ip, gw, mask;
139
139
if (get_ip (ip, gw, mask)) {
140
140
ESP_LOGI (TAG, " Connected to WiFi with IP: %s" , ip.c_str ());
141
- ip_event_got_ip_t evt = { };
142
- evt.esp_netif = s_esp_netif;
143
- evt.ip_info .ip .addr = esp_ip4addr_aton (ip.c_str ());
144
- evt.ip_info .gw .addr = esp_ip4addr_aton (gw.c_str ());
145
- evt.ip_info .netmask .addr = esp_ip4addr_aton (mask.c_str ());
141
+ // ip_event_got_ip_t evt = { };
142
+ // evt.esp_netif = s_esp_netif;
143
+ // evt.ip_info.ip.addr = esp_ip4addr_aton(ip.c_str());
144
+ // evt.ip_info.gw.addr = esp_ip4addr_aton(gw.c_str());
145
+ // evt.ip_info.netmask.addr = esp_ip4addr_aton(mask.c_str());
146
146
if (esp_event_handler_register (IP_EVENT, ESP_EVENT_ANY_ID, on_ip, this ) != ESP_OK) {
147
147
printf (" Failed to register IP event handler" );
148
148
}
@@ -171,7 +171,7 @@ class DCE : public esp_modem::DCE_T<ESP_AT_Module> {
171
171
private:
172
172
static void on_ip (void *arg, esp_event_base_t base, int32_t event_id, void *data)
173
173
{
174
- auto t = static_cast <DCE *>(arg);
174
+ // auto t = static_cast<DCE *>(arg);
175
175
176
176
ip_event_got_ip_t *event = (ip_event_got_ip_t *)data;
177
177
esp_netif_t *netif = event->esp_netif ;
0 commit comments