Fixed upcase, other XBee fixes

This commit is contained in:
Sara Damiano
2019-05-20 16:13:05 -04:00
parent 19dd23882f
commit 09725ba8e6
12 changed files with 38 additions and 33 deletions

View File

@@ -540,7 +540,7 @@ protected:
bool modemConnect(const char* host, uint16_t port, uint8_t mux,
bool ssl = false, int timeout_s = 75)
{
uint32_t timeout_ms = timeout_s*1000;
uint32_t timeout_ms = ((uint32_t)timeout_s)*1000;
sendAT(GF("+QIOPEN="), mux, GF("\"TCP"), GF("\",\""), host, GF("\","), port);
int rsp = waitResponse(timeout_ms,
GF("CONNECT OK" GSM_NL),