Fix SIM900 build

This commit is contained in:
Volodymyr Shymanskyy
2018-04-14 17:55:10 +03:00
parent 5ab0b93c29
commit 975ba8bf57
2 changed files with 7 additions and 2 deletions

View File

@@ -750,9 +750,10 @@ public:
protected:
bool modemConnect(const char* host, uint16_t port, uint8_t mux, bool ssl = false) {
int rsp;
#if !defined(TINY_GSM_MODEM_SIM900)
sendAT(GF("+CIPSSL="), ssl);
int rsp = waitResponse();
rsp = waitResponse();
if (ssl && rsp != 1) {
return false;
}