From f276c834f69e3a2e6ad1478df003f637f56a66f7 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Wed, 29 Mar 2023 19:51:27 +0200 Subject: [PATCH] obsolete examples removed --- examples/UnoWiFiBlynk/UnoWiFiBlynk.ino | 53 --------- .../WiFiEspWebClient/WiFiEspWebClient.ino | 104 ------------------ .../WiFiLinkWebClient/WiFiLinkWebClient.ino | 73 ------------ 3 files changed, 230 deletions(-) delete mode 100644 examples/UnoWiFiBlynk/UnoWiFiBlynk.ino delete mode 100644 examples/WiFiEspWebClient/WiFiEspWebClient.ino delete mode 100644 examples/WiFiLinkWebClient/WiFiLinkWebClient.ino diff --git a/examples/UnoWiFiBlynk/UnoWiFiBlynk.ino b/examples/UnoWiFiBlynk/UnoWiFiBlynk.ino deleted file mode 100644 index 801ef43..0000000 --- a/examples/UnoWiFiBlynk/UnoWiFiBlynk.ino +++ /dev/null @@ -1,53 +0,0 @@ -/************************************************************* - Download latest Blynk library here: - https://github.com/blynkkk/blynk-library/releases/latest - - Blynk is a platform with iOS and Android apps to control - Arduino, Raspberry Pi and the likes over the Internet. - You can easily build graphic interfaces for all your - projects by simply dragging and dropping widgets. - - Downloads, docs, tutorials: http://www.blynk.cc - Sketch generator: http://examples.blynk.cc - Blynk community: http://community.blynk.cc - Follow us: http://www.fb.com/blynkapp - http://twitter.com/blynk_app - - Blynk library is licensed under MIT license - This example code is in public domain. - - *************************************************************/ - -/* Comment this out to disable prints and save space */ -#define BLYNK_PRINT Serial - -#include -#include - -// You should get Auth Token in the Blynk App. -// Go to the Project Settings (nut icon). -char auth[] = "YourAuthToken"; - -void setup() -{ - // Debug console - Serial.begin(115200); - - Serial1.begin(115200); - Serial1.resetESP(); - delay(3000); //wait while WiFiLink firmware connects to WiFi with Web Panel settings - WiFi.init(&Serial1); - while (WiFi.status() != WL_CONNECTED) { - delay(10); - } - Serial.println("You're connected to the network"); - - Blynk.config(auth, BLYNK_DEFAULT_DOMAIN, BLYNK_DEFAULT_PORT); - while(Blynk.connect() != true) {} -} - -void loop() -{ - Blynk.run(); -} - diff --git a/examples/WiFiEspWebClient/WiFiEspWebClient.ino b/examples/WiFiEspWebClient/WiFiEspWebClient.ino deleted file mode 100644 index cb7b088..0000000 --- a/examples/WiFiEspWebClient/WiFiEspWebClient.ino +++ /dev/null @@ -1,104 +0,0 @@ -/* - WiFiEsp example: WebClient - https://github.com/bportaluri/WiFiEsp -*/ - -#include -#include "WiFiEsp.h" - -char ssid[] = "Twim"; // your network SSID (name) -char pass[] = "12345678"; // your network password -int status = WL_IDLE_STATUS; // the Wifi radio's status - -char server[] = "arduino.cc"; - -// Initialize the Ethernet client object -WiFiEspClient client; - -void setup() -{ - // initialize serial for debugging - Serial.begin(115200); - // initialize serial for ESP module - Serial1.begin(115200); - // initialize ESP module - WiFi.init(&Serial1); - - Serial1.overflow(); // clear the flag. after reset in init esp overflows buffer with boot log - - // check for the presence of the shield - if (WiFi.status() == WL_NO_SHIELD) { - Serial.println("WiFi shield not present"); - // don't continue - while (true); - } - - // attempt to connect to WiFi network - while ( status != WL_CONNECTED) { - Serial.print("Attempting to connect to WPA SSID: "); - Serial.println(ssid); - // Connect to WPA/WPA2 network - status = WiFi.begin(ssid, pass); - } - - // you're connected now, so print out the data - Serial.println("You're connected to the network"); - - printWifiStatus(); - - Serial.println(); - Serial.println("Starting connection to server..."); - // if you get a connection, report back via serial - if (client.connect(server, 80)) { - Serial.println("Connected to server"); - // Make a HTTP request - client.println("GET /asciilogo.txt HTTP/1.1"); - client.println("Host: arduino.cc"); - client.println("Connection: close"); - client.println(); - } -} - -void loop() -{ - // if there are incoming bytes available - // from the server, read them and print them - while (client.available()) { - char c = client.read(); - Serial.write(c); - } - - if (Serial1.overflow()) { - Serial.println("OVERFLOW!!!"); - // if you get this, remove the delay(5) in getData() in libraries/WiFiEsp/src/utility/EspDrv.cpp - } - - // if the server's disconnected, stop the client - if (!client.connected()) { - Serial.println(); - Serial.println("Disconnecting from server..."); - client.stop(); - - // do nothing forevermore - while (true); - } -} - - -void printWifiStatus() -{ - // print the SSID of the network you're attached to - Serial.print("SSID: "); - Serial.println(WiFi.SSID()); - - // print your WiFi shield's IP address - IPAddress ip = WiFi.localIP(); - Serial.print("IP Address: "); - Serial.println(ip); - - // print the received signal strength - long rssi = WiFi.RSSI(); - Serial.print("Signal strength (RSSI):"); - Serial.print(rssi); - Serial.println(" dBm"); -} diff --git a/examples/WiFiLinkWebClient/WiFiLinkWebClient.ino b/examples/WiFiLinkWebClient/WiFiLinkWebClient.ino deleted file mode 100644 index 2f58691..0000000 --- a/examples/WiFiLinkWebClient/WiFiLinkWebClient.ino +++ /dev/null @@ -1,73 +0,0 @@ -/* - WiFiLink example: WebClient - https://github.com/jandrassy/arduino-library-wifilink - */ - -#include -#include "WiFiLink.h" - -char server[] = "arduino.cc"; -boolean sendRequest = true; - -WiFiClient client; - -void setup() { - Serial.begin(115200); - - Serial1.begin(115200); - Serial1.resetESP(); - delay(3000); //wait while WiFiLink firmware connects to WiFi with Web Panel settings - - WiFi.init(&Serial1); - while (WiFi.status() != WL_CONNECTED) { - delay(10); - } - Serial.println("You're connected to the network"); - printWifiStatus(); - Serial.println(); -} - -void loop() { - if (sendRequest) { - Serial.println("Starting connection to server..."); - if (client.connect(server, 80)) { - Serial.println("Connected to server"); - client.println("GET /asciilogo.txt HTTP/1.1"); - client.println("Host: arduino.cc"); - client.println("Connection: close"); - client.println(); - } - sendRequest = false; - } - - while (client.available()) { - char c = client.read(); - Serial.write(c); - } - - if (!client.connected()) { - Serial.println(); - Serial.println("Disconnecting from server..."); - client.stop(); - - while (true) - ; - } -} - -void printWifiStatus() { - // print the SSID of the network you're attached to - Serial.print("SSID: "); - Serial.println(WiFi.SSID()); - - // print your WiFi shield's IP address - IPAddress ip = WiFi.localIP(); - Serial.print("IP Address: "); - Serial.println(ip); - - // print the received signal strength - long rssi = WiFi.RSSI(); - Serial.print("Signal strength (RSSI):"); - Serial.print(rssi); - Serial.println(" dBm"); -}