Skip to content

Commit f90c096

Browse files
committed
fix esp8266 example and added note about verification
1 parent c36e561 commit f90c096

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/AdafruitHuzzahESP8266Secure/AdafruitHuzzahESP8266Secure.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ void connect() {
2525
delay(1000);
2626
}
2727

28+
// do not verify tls certificate
29+
// check the following example for methods to verify the server:
30+
// https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/BearSSL_Validation/BearSSL_Validation.ino
31+
net.setInsecure();
32+
2833
Serial.print("\nconnecting...");
2934
while (!client.connect("arduino", "try", "try")) {
3035
Serial.print(".");

0 commit comments

Comments
 (0)