-
-
Notifications
You must be signed in to change notification settings - Fork 0
Reference
PeerGum edited this page Dec 29, 2022
·
2 revisions
This class is used to handle all Wifi stuff, from connection to disconnection, STA [station] or [AP] accesspoint mode, SSID scanning, etc...
(TBD)
...
...
...
TCPClient client;
char *wBuffer = "something";
char rBuffer[1024];
IPAddress ipAddress(192,168,1,1);
if (client.connect(ipAddress,80)) {
client.write(wBuffer,sizeof(buffer));
while (client.available()) {
client.read(rBuffer,sizeof(rBuffer));
}
client.close();
}
IPAddress ipAddress1(192,168,1,1);
IPAddress ipAddress2; // ipNull address
ipAddress2.fromChar("192.168.2.1");
printf("%s",ipAddress1.toChar());