diff --git a/.pio/build/esp12e/firmware.bin b/.pio/build/esp12e/firmware.bin index e6d2371..46c3972 100644 Binary files a/.pio/build/esp12e/firmware.bin and b/.pio/build/esp12e/firmware.bin differ diff --git a/include/version.h b/include/version.h index 0bd28e6..31ac2fe 100644 --- a/include/version.h +++ b/include/version.h @@ -1,9 +1,9 @@ #ifndef BUILD_NUMBER - #define BUILD_NUMBER 2 + #define BUILD_NUMBER 4 #endif #ifndef VERSION - #define VERSION "v0.1.2 - 2023-11-28 11:38:15.948331" + #define VERSION "v0.1.4 - 2023-11-28 11:53:00.628775" #endif #ifndef VERSION_SHORT - #define VERSION_SHORT "v0.1.2" + #define VERSION_SHORT "v0.1.4" #endif diff --git a/src/myOTA.cpp b/src/myOTA.cpp index 0f65288..5cf74e4 100644 --- a/src/myOTA.cpp +++ b/src/myOTA.cpp @@ -6,6 +6,7 @@ #include #include #include +#include void setupOTALocal() { Serial.println("Booting"); @@ -44,7 +45,11 @@ void handleOTALocal() { } void handleOTARemote() { - WiFiClient client; + BearSSL::WiFiClientSecure client; + const uint8_t fingerprint[20] = { + 0xe9, 0x4e, 0x54, 0xa9, 0x30, 0x86, 0x3d, 0x53, 0x5b, 0xa0, 0xd2, 0xd3, 0xa5, 0xdd, 0x0d, 0xe3, 0xbd, 0xa8, 0xc9, 0xc2, + }; + client.setFingerprint(fingerprint); t_httpUpdate_return ret = ESPhttpUpdate.update(client, "https://github.com/bendtherules/Patient-counter-esp8266/raw/main/.pio/build/esp12e/firmware.bin", VERSION_SHORT); switch(ret) { case HTTP_UPDATE_FAILED: diff --git a/versioning b/versioning index d8263ee..bf0d87a 100644 --- a/versioning +++ b/versioning @@ -1 +1 @@ -2 \ No newline at end of file +4 \ No newline at end of file