Skip to content

Commit 807bdb3

Browse files
committed
Merge 'main'
1 parent c964b2c commit 807bdb3

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ The app depends on the following libraries. They must either be downloaded from
7070

7171
Download the app code from GitHub using the green Clone or Download button from [the GitHub project main page](https://github.com/jasoncoon/esp8266-fastled-webserver) and click Download ZIP. Decompress the ZIP file in your Arduino sketch folder.
7272

73+
Here are the board settings I use:
74+
75+
![image](https://user-images.githubusercontent.com/3598755/135755572-52d4d0db-1dba-4388-a86c-a293e4f13878.png)
76+
7377
The web app needs to be uploaded to the ESP8266's SPIFFS. You can do this within the Arduino IDE after installing the [Arduino ESP8266FS tool](http://esp8266.github.io/Arduino/versions/2.3.0/doc/filesystem.html#uploading-files-to-file-system).
7478

7579
With ESP8266FS installed upload the web app using `ESP8266 Sketch Data Upload` command in the Arduino Tools menu.

esp8266-fastled-webserver/Ping.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,7 @@
3434

3535
const bool discovery = false;
3636
const String serverName = "https://ping.evilgeniuslabs.org"; // address of server to ping
37-
38-
const uint8_t fingerprint[20] {
39-
0xAD, 0x1F, 0xCB, 0xD9,
40-
0xA0, 0xBC, 0x17, 0xD5,
41-
0x5B, 0xF2, 0xE1, 0xBF,
42-
0x98, 0xD1, 0x06, 0xCD,
43-
0xAC, 0x3F, 0xB8, 0x33
44-
}; // server SSL cert fingerprint
37+
// const uint8_t fingerprint[20] { 0xAD, 0x1F, 0xCB, 0xD9, 0xA0, 0xBC, 0x17, 0xD5, 0x5B, 0xF2, 0xE1, 0xBF, 0x98, 0xD1, 0x06, 0xCD, 0xAC, 0x3F, 0xB8, 0x33 }; // server SSL cert fingerprint
4538

4639
void checkPingTimer() {
4740
if (!discovery) return;
@@ -55,10 +48,12 @@ void checkPingTimer() {
5548
// Check WiFi connection status
5649
if (WiFi.status() == WL_CONNECTED) {
5750
Serial.println("Connected, ready to ping");
58-
WiFiClientSecure client;
59-
client.setFingerprint(fingerprint);
60-
51+
6152
HTTPClient http;
53+
BearSSL::WiFiClientSecure client;
54+
55+
//client.setFingerprint(fingerprint);
56+
client.setInsecure();
6257
http.begin(client, serverName);
6358
http.addHeader("Content-Type", "application/json");
6459
String deviceName = "\"deviceName\":\"" + nameString;

0 commit comments

Comments
 (0)