Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate axTLS, update examples #5366

Merged
merged 36 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9dfdfd5
update examples
d-a-v Nov 22, 2018
a28b183
fix serial<->tcp example, use STASSID instead of SSID (name collision)
d-a-v Nov 23, 2018
be3c5cf
fix HTTPSRequest.ino
d-a-v Nov 23, 2018
7e40b18
update AxTLS HTTPS examples, update AxTLS API to deprecated
d-a-v Nov 24, 2018
3e94897
fixes
d-a-v Nov 24, 2018
c2301e2
fixes + fix astyle (no preproc directives) + restyling script
d-a-v Nov 24, 2018
0b849cf
fix HTTPClient library
d-a-v Nov 24, 2018
8ecae22
fixes
d-a-v Nov 24, 2018
68f77a5
common.sh: do not reload arduino when already present (for locally CI…
d-a-v Nov 24, 2018
f1bb21d
common.sh: do not reload ArduinoJson when already present (for locall…
d-a-v Nov 24, 2018
797bb37
fix
d-a-v Nov 24, 2018
9c2c90a
fix
d-a-v Nov 24, 2018
dd0f55f
fix deprecated example
d-a-v Nov 24, 2018
e7ec28a
fix WiFiHTTPSServer.ino
d-a-v Nov 24, 2018
70ef54b
reduce footprint
d-a-v Nov 25, 2018
003c190
wipfix
d-a-v Nov 25, 2018
49a5d9b
fix led builtin
d-a-v Nov 25, 2018
c48d5f4
fix example
d-a-v Nov 25, 2018
119e73d
finished updating APSSID on all examples
d-a-v Nov 25, 2018
8a28979
style
d-a-v Nov 25, 2018
bc945af
Merge branch 'master' into examples
d-a-v Nov 25, 2018
d742388
Merge branch 'master' into examples
earlephilhower Nov 26, 2018
ef890c9
Merge branch 'master' into examples
d-a-v Nov 27, 2018
b7c4e55
restyle examples
d-a-v Nov 27, 2018
8473361
Merge branch 'master' into examples
d-a-v Nov 28, 2018
e2ebfab
helper to run CI test locally
d-a-v Nov 28, 2018
ab0b372
local CI runner more verbose
d-a-v Nov 28, 2018
a9a7572
Merge branch 'master' into examples
d-a-v Nov 28, 2018
cbebae6
Merge branch 'master' into examples
d-a-v Nov 29, 2018
822c38c
+const
d-a-v Nov 29, 2018
42dc0b7
deprecation deprecation
d-a-v Nov 29, 2018
3c298e6
deprecation
d-a-v Nov 29, 2018
c00b975
Merge branch 'master' into examples
d-a-v Nov 29, 2018
6048663
Merge branch 'master' into examples
earlephilhower Nov 30, 2018
5385a93
Update NTPClient.ino
devyte Nov 30, 2018
cc15e6f
Update interactive.ino
devyte Nov 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
#include <WiFiUdp.h>
#include <ArduinoOTA.h>

const char* ssid = "..........";
const char* password = "..........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

void setup() {
Serial.begin(115200);
Expand Down
9 changes: 7 additions & 2 deletions libraries/ArduinoOTA/examples/OTALeds/OTALeds.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
#include <WiFiUdp.h>
#include <ArduinoOTA.h>

const char* ssid = "...";
const char* password = "...";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;
const char* host = "OTA-LEDS";

int led_pin = 13;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
*/

/* Set these to your desired softAP credentials. They are not configurable at runtime */
const char *softAP_ssid = "ESP_ap";
const char *softAP_password = "12345678";
#ifndef APSSID
#define APSSID "ESP_ap"
#define APPSK "12345678"
#endif

const char *softAP_ssid = APSSID;
const char *softAP_password = APPSK;

/* hostname for mDNS. Should work at least on windows. Try http://esp8266.local */
const char *myHostname = "esp8266";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
#include <ESP8266mDNS.h>
#include <ESP8266AVRISP.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-avrisp";
const char* ssid = "**********";
const char* pass = "**********";
const char* ssid = STASSID;
const char* pass = STAPSK;
const uint16_t port = 328;
const uint8_t reset_pin = 5;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@

#include <ESP8266HTTPClient.h>

const char* ssid = "SSID";
const char* ssidPassword = "PASSWORD";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* ssidPassword = STAPSK;

const char *username = "admin";
const char *password = "admin";
Expand Down
5 changes: 4 additions & 1 deletion libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#if HTTPCLIENT_1_1_COMPATIBLE
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <WiFiClientSecureAxTLS.h>
devyte marked this conversation as resolved.
Show resolved Hide resolved
earlephilhower marked this conversation as resolved.
Show resolved Hide resolved
#endif

#include <StreamString.h>
Expand Down Expand Up @@ -64,7 +64,10 @@ class TLSTraits : public TransportTraits

std::unique_ptr<WiFiClient> create() override
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
return std::unique_ptr<WiFiClient>(new axTLS::WiFiClientSecure());
#pragma GCC diagnostic pop
}

bool verify(WiFiClient& client, const char* host) override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-webupdate";
const char* update_path = "/firmware";
const char* update_username = "admin";
const char* update_password = "admin";
const char* ssid = "........";
const char* password = "........";
const char* ssid = STASSID;
const char* password = STAPSK;

BearSSL::ESP8266WebServerSecure httpServer(443);
ESP8266HTTPUpdateServer httpUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,17 @@
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-webupdate";
const char* update_path = "/firmware";
const char* update_username = "admin";
const char* update_password = "admin";
const char* ssid = "........";
const char* password = "........";
const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServerSecure httpServer(443);
ESP8266HTTPUpdateServer httpUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-webupdate";
const char* update_path = "/firmware";
const char* update_username = "admin";
const char* update_password = "admin";
const char* ssid = "........";
const char* password = "........";
const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer httpServer(80);
ESP8266HTTPUpdateServer httpUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
#include <ESP8266mDNS.h>
#include <ESP8266HTTPUpdateServer.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-webupdate";
const char* ssid = "........";
const char* password = "........";
const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer httpServer(80);
ESP8266HTTPUpdateServer httpUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@
#include <ESP8266WebServer.h>
#include <WiFiClient.h>

const char* ssid = "replace_me";
const char* password = "replace_me";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer web_server(80);

Expand Down
9 changes: 7 additions & 2 deletions libraries/ESP8266NetBIOS/examples/ESP_NBNST/ESP_NBNST.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
#include <ESP8266WebServer.h>
#include <ESP8266NetBIOS.h>

const char* ssid = "............";
const char* password = "..............";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer wwwserver(80);
String content;
Expand Down
9 changes: 7 additions & 2 deletions libraries/ESP8266SSDP/examples/SSDP/SSDP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
#include <ESP8266WebServer.h>
#include <ESP8266SSDP.h>

const char* ssid = "************";
const char* password = "***********";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer HTTP(80);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

const char *ssid = "YourSSIDHere";
const char *password = "YourPSKHere";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char *ssid = STASSID;
const char *password = STAPSK;

ESP8266WebServer server(80);

Expand Down
9 changes: 7 additions & 2 deletions libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@

#define DBG_OUTPUT_PORT Serial

const char* ssid = "wifi-ssid";
const char* password = "wifi-password";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;
const char* host = "esp8266fs";

ESP8266WebServer server(80);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

const char* ssid = "........";
const char* password = "........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer server(80);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@
#include <ESP8266WebServerSecure.h>
#include <ESP8266mDNS.h>

const char* ssid = "....";
const char* password = "....";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

BearSSL::ESP8266WebServerSecure server(443);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@
#include <ESP8266WebServerSecure.h>
#include <ESP8266mDNS.h>

const char* ssid = "........";
const char* password = "........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServerSecure server(443);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
#include <ArduinoOTA.h>
#include <ESP8266WebServer.h>

const char* ssid = "........";
const char* password = "........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer server(80);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
#include <ArduinoOTA.h>
#include <ESP8266WebServer.h>

const char* ssid = "........";
const char* password = "........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer server(80);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@

#define DBG_OUTPUT_PORT Serial

const char* ssid = "**********";
const char* password = "**********";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;
const char* host = "esp8266sd";

ESP8266WebServer server(80);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
#include <WiFiClient.h>
#include <ESP8266WebServer.h>

const char* ssid = "........";
const char* password = "........";
#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer server(80);

Expand Down
9 changes: 7 additions & 2 deletions libraries/ESP8266WebServer/examples/WebUpdate/WebUpdate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

#ifndef STASSID
#define STASSID "your-ssid"
#define STAPSK "your-password"
#endif

const char* host = "esp8266-webupdate";
const char* ssid = "........";
const char* password = "........";
const char* ssid = STASSID;
const char* password = STAPSK;

ESP8266WebServer server(80);
const char* serverIndex = "<form method='POST' action='/update' enctype='multipart/form-data'><input type='file' name='update'><input type='submit' value='Update'></form>";
Expand Down
4 changes: 3 additions & 1 deletion libraries/ESP8266WebServer/src/ESP8266WebServerSecure.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "ESP8266WebServerSecureAxTLS.h"
#include <WiFiClientSecure.h>

//#include "ESP8266WebServerSecureAxTLS.h"
#include "ESP8266WebServerSecureBearSSL.h"
Loading