Merge branch 'master' into original
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TinyGSM",
|
"name": "TinyGSM",
|
||||||
"version": "0.4.0",
|
"version": "0.4.1",
|
||||||
"description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports many GSM and wifi modules with AT command interfaces.",
|
"description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports many GSM and wifi modules with AT command interfaces.",
|
||||||
"keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968, M95, MC60, MC60E, BG96, ublox",
|
"keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968, M95, MC60, MC60E, BG96, ublox",
|
||||||
"authors":
|
"authors":
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=TinyGSM
|
name=TinyGSM
|
||||||
version=0.4.0
|
version=0.4.1
|
||||||
author=Volodymyr Shymanskyy
|
author=Volodymyr Shymanskyy
|
||||||
maintainer=Volodymyr Shymanskyy
|
maintainer=Volodymyr Shymanskyy
|
||||||
sentence=A small Arduino library for GPRS modules, that just works.
|
sentence=A small Arduino library for GPRS modules, that just works.
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
* @file TinyGsmClientXBee.h
|
* @file TinyGsmClientXBee.h
|
||||||
* @author Volodymyr Shymanskyy
|
* @author Volodymyr Shymanskyy
|
||||||
* @license LGPL-3.0
|
* @license LGPL-3.0
|
||||||
* @copyright Copyright (c) 2016 Volodymyr Shymanskyy
|
* @copyright Copyright (c) 2016 Volodymyr Shymanskyy, XBee module by Sara Damiano
|
||||||
* @date Nov 2016
|
* @date Nov 2016
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -849,9 +849,9 @@ finish:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int readResponseInt(uint32_t timeout = 1000) {
|
int readResponseInt(uint32_t timeout = 1000) {
|
||||||
String res = readResponseString(timeout);
|
String res = readResponseString(timeout); // it just works better reading a string first
|
||||||
char buf[3] = {0,}; // Set up buffer for response
|
char buf[5] = {0,};
|
||||||
res.toCharArray(buf, 3);
|
res.toCharArray(buf, 5);
|
||||||
int intRes = strtol(buf, 0, 16);
|
int intRes = strtol(buf, 0, 16);
|
||||||
return intRes;
|
return intRes;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user