mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 22:50:39 +08:00
Merge pull request #654 from MarSoft/fix-notifications-esp32
Notifications: do setInsecure on ESP32 too Thank you
This commit is contained in:
commit
5a45a91a07
@ -195,8 +195,8 @@ bool NotificationsService::sendPushoverMSG(const char * title, const char * mess
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
TSecureClient Notificationclient;
|
TSecureClient Notificationclient;
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
Notificationclient.setInsecure();
|
Notificationclient.setInsecure();
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
||||||
log_esp3d("Handshake success");
|
log_esp3d("Handshake success");
|
||||||
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
||||||
@ -243,8 +243,8 @@ bool NotificationsService::sendTelegramMSG(const char * title, const char * mess
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
TSecureClient Notificationclient;
|
TSecureClient Notificationclient;
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
Notificationclient.setInsecure();
|
Notificationclient.setInsecure();
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
||||||
log_esp3d("Handshake success");
|
log_esp3d("Handshake success");
|
||||||
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
||||||
@ -285,8 +285,8 @@ bool NotificationsService::sendEmailMSG(const char * title, const char * message
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
TSecureClient Notificationclient;
|
TSecureClient Notificationclient;
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
Notificationclient.setInsecure();
|
Notificationclient.setInsecure();
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
||||||
log_esp3d("Handshake success");
|
log_esp3d("Handshake success");
|
||||||
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
||||||
@ -388,8 +388,8 @@ bool NotificationsService::sendLineMSG(const char * title, const char * message)
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
TSecureClient Notificationclient;
|
TSecureClient Notificationclient;
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
|
||||||
Notificationclient.setInsecure();
|
Notificationclient.setInsecure();
|
||||||
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
if (Notificationclient.probeMaxFragmentLength(_serveraddress.c_str(), _port, BEARSSL_MFLN_SIZE)) {
|
||||||
log_esp3d("Handshake success");
|
log_esp3d("Handshake success");
|
||||||
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
Notificationclient.setBufferSizes(BEARSSL_MFLN_SIZE, 512);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user