Skip to content

Commit a6fc683

Browse files
committed
Ethernet: fix examples
1 parent a67713d commit a6fc683

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libraries/Ethernet/examples/WebClientRepeatingSSL/WebClientRepeatingSSL.ino

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ char server[] = "www.arduino.cc";
1717
int port = 443;
1818
// IPAddress server(64,131,82,241);
1919

20+
// Set the static IP address to use if the DHCP fails to assign
21+
IPAddress ip(192, 168, 0, 177);
22+
IPAddress myDns(192, 168, 0, 1);
23+
2024
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
2125
const unsigned long postingInterval = 10 * 1000; // delay between updates, in milliseconds
2226

libraries/SocketWrapper/src/MbedUdp.h

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
#define WIFI_UDP_BUFFER_SIZE 508
3232
#endif
3333

34+
#ifndef UDP_TX_PACKET_MAX_SIZE
35+
#define UDP_TX_PACKET_MAX_SIZE WIFI_UDP_BUFFER_SIZE
36+
#endif
37+
3438
namespace arduino {
3539

3640
class MbedUDP : public UDP {

0 commit comments

Comments
 (0)