From 1ddbfb99dd29b1018a945aba769326ea4874c924 Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Thu, 29 Aug 2019 13:36:32 -0400 Subject: [PATCH] Add QIMODE to M95 --- .github/ISSUE_TEMPLATE.md | 2 +- library.json | 2 +- library.properties | 2 +- src/TinyGsmClientM95.h | 6 ++++++ src/TinyGsmCommon.h | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 043bce1..029f5b9 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -23,7 +23,7 @@ with your board before submitting any issues. Main processor board: Modem: -TinyGSM version: +TinyGSM version: Code: ### Scenario, steps to reproduce diff --git a/library.json b/library.json index 5424ecd..e6ba9c8 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TinyGSM", - "version": "0.9.9", + "version": "0.9.10", "description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports many GSM, LTE, and WiFi modules with AT command interfaces.", "keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM7000, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968, M95, MC60, MC60E, BG96, ublox, Quectel, SIMCOM, AI Thinker, LTE, LTE-M", "authors": diff --git a/library.properties b/library.properties index ad6e03e..d0f9f29 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TinyGSM -version=0.9.9 +version=0.9.10 author=Volodymyr Shymanskyy maintainer=Volodymyr Shymanskyy sentence=A small Arduino library for GPRS modules, that just works. diff --git a/src/TinyGsmClientM95.h b/src/TinyGsmClientM95.h index 4d47b8d..b4c1aeb 100644 --- a/src/TinyGsmClientM95.h +++ b/src/TinyGsmClientM95.h @@ -352,6 +352,12 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() return false; } + // Select TCP/IP transfer mode + sendAT(GF("+QIMODE=0")); + if (waitResponse() != 1) { + return false; + } + //Enable multiple TCP/IP connections sendAT(GF("+QIMUX=1")); if (waitResponse() != 1) { diff --git a/src/TinyGsmCommon.h b/src/TinyGsmCommon.h index f2cbba8..cc19e84 100644 --- a/src/TinyGsmCommon.h +++ b/src/TinyGsmCommon.h @@ -10,7 +10,7 @@ #define TinyGsmCommon_h // The current library version number -#define TINYGSM_VERSION "0.9.9" +#define TINYGSM_VERSION "0.9.10" #if defined(SPARK) || defined(PARTICLE) #include "Particle.h"