fix missing set hostname for TLS, update to latest IDF, add debug (can remove later)

This commit is contained in:
ladyada
2019-02-16 22:54:41 -05:00
parent 9e76479a7e
commit 6179c0981d
3 changed files with 188 additions and 10 deletions

View File

@@ -22,7 +22,7 @@
#include <esp_wifi.h>
#include <tcpip_adapter.h>
#include <apps/sntp/sntp.h>
#include <lwip/apps/sntp.h>
#include <lwip/dns.h>
#include <lwip/netdb.h>
@@ -111,7 +111,7 @@ int WiFiClass::ping(/*IPAddress*/uint32_t host, uint8_t ttl)
to.sin_len = sizeof(to);
to.sin_family = AF_INET;
inet_addr_from_ipaddr(&to.sin_addr, ip_2_ip4(&addr));
inet_addr_from_ip4addr(&to.sin_addr, ip_2_ip4(&addr));
sendto(s, &request, sizeof(request), 0, (struct sockaddr*)&to, sizeof(to));
unsigned long sendTime = millis();