Browse Source

Merge branch 'master' into original

v_master
Sara Damiano 6 years ago
parent
commit
81c31afe5c
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      library.json
  2. +1
    -1
      library.properties
  3. +4
    -4
      src/TinyGsmClientXBee.h

+ 1
- 1
library.json View File

@ -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":


+ 1
- 1
library.properties View File

@ -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.


+ 4
- 4
src/TinyGsmClientXBee.h View File

@ -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;
}


Loading…
Cancel
Save