Skip to content

Commit ad0b52f

Browse files
committed
setInsecure client
1 parent 1b23fb1 commit ad0b52f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/AsyncTelegram2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ bool AsyncTelegram2::begin()
5656
return getMe();
5757
}
5858

59+
void AsyncTelegram2::useUnsecureClient(void){
60+
telegramClient->setInsecure();
61+
}
62+
5963
bool AsyncTelegram2::reset(void)
6064
{
6165
static uint32_t lastResetTime;

src/AsyncTelegram2.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ class AsyncTelegram2
105105
// true if no error occurred
106106
bool begin(void);
107107

108+
// use the network client in unsecure mode
109+
void useUnsecureClient(void);
110+
108111
// reset the connection between ESP8266 and the telegram server (ex. when connection was lost)
109112
// returns
110113
// true if no error occurred

0 commit comments

Comments
 (0)