diff --git a/library.json b/library.json index 5ef39aa..6930df9 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "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.", "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": diff --git a/library.properties b/library.properties index f8d8073..6839fd8 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TinyGSM -version=0.4.0 +version=0.4.1 author=Volodymyr Shymanskyy maintainer=Volodymyr Shymanskyy sentence=A small Arduino library for GPRS modules, that just works. diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index 3b72394..655cc36 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -2,7 +2,7 @@ * @file TinyGsmClientXBee.h * @author Volodymyr Shymanskyy * @license LGPL-3.0 - * @copyright Copyright (c) 2016 Volodymyr Shymanskyy + * @copyright Copyright (c) 2016 Volodymyr Shymanskyy, XBee module by Sara Damiano * @date Nov 2016 */ @@ -849,9 +849,9 @@ finish: } int readResponseInt(uint32_t timeout = 1000) { - String res = readResponseString(timeout); - char buf[3] = {0,}; // Set up buffer for response - res.toCharArray(buf, 3); + String res = readResponseString(timeout); // it just works better reading a string first + char buf[5] = {0,}; + res.toCharArray(buf, 5); int intRes = strtol(buf, 0, 16); return intRes; }