You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

415 lines
21 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
6 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
6 years ago
8 years ago
7 years ago
7 years ago
7 years ago
5 years ago
8 years ago
7 years ago
6 years ago
7 years ago
7 years ago
6 years ago
6 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
8 years ago
6 years ago
6 years ago
8 years ago
6 years ago
8 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
6 years ago
7 years ago
8 years ago
7 years ago
7 years ago
8 years ago
6 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
  1. ![TinyGSM logo](https://cdn.rawgit.com/vshymanskyy/TinyGSM/d18e93dc51fe988a0b175aac647185457ef640b5/extras/logo.svg)
  2. A small Arduino library for GSM modules, that just works.
  3. <!---
  4. [![GitHub download](https://img.shields.io/github/downloads/vshymanskyy/TinyGSM/total.svg)](https://github.com/vshymanskyy/TinyGSM/releases/latest)--->
  5. [![GitHub version](https://img.shields.io/github/release/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/releases/latest)
  6. [![Build status](https://img.shields.io/travis/vshymanskyy/TinyGSM.svg)](https://travis-ci.org/vshymanskyy/TinyGSM)
  7. [![GitHub issues](https://img.shields.io/github/issues/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/issues)
  8. [![GitHub wiki](https://img.shields.io/badge/Wiki-available-brightgreen.svg)](https://github.com/vshymanskyy/TinyGSM/wiki)
  9. [![GitHub stars](https://img.shields.io/github/stars/vshymanskyy/TinyGSM.svg)](https://github.com/vshymanskyy/TinyGSM/stargazers)
  10. [![License](https://img.shields.io/badge/license-LGPL3-blue.svg)](https://github.com/vshymanskyy/TinyGSM/blob/master/LICENSE)
  11. If you like **TinyGSM** - give it a star, or fork it and contribute!
  12. [![GitHub stars](https://img.shields.io/github/stars/vshymanskyy/TinyGSM.svg?style=social&label=Star)](https://github.com/vshymanskyy/TinyGSM/stargazers)
  13. [![GitHub forks](https://img.shields.io/github/forks/vshymanskyy/TinyGSM.svg?style=social&label=Fork)](https://github.com/vshymanskyy/TinyGSM/network)
  14. You can also join our chat:
  15. [![Gitter](https://img.shields.io/gitter/room/vshymanskyy/TinyGSM.svg)](https://gitter.im/tinygsm)
  16. - [Supported modems](#supported-modems)
  17. - [Supported boards/modules](#supported-boardsmodules)
  18. - [Features](#features)
  19. - [Getting Started](#getting-started)
  20. - [First Steps](#first-steps)
  21. - [Writing your own code](#writing-your-own-code)
  22. - [If you have any issues](#if-you-have-any-issues)
  23. - [How does it work?](#how-does-it-work)
  24. - [API Reference](#api-reference)
  25. - [Troubleshooting](#troubleshooting)
  26. - [Ensure stable data & power connection](#ensure-stable-data--power-connection)
  27. - [Baud rates](#baud-rates)
  28. - [Broken initial configuration](#broken-initial-configuration)
  29. - [Failed connection or no data received](#failed-connection-or-no-data-received)
  30. - [Diagnostics sketch](#diagnostics-sketch)
  31. - [Web request formatting problems - "but it works with PostMan"](#web-request-formatting-problems---but-it-works-with-postman)
  32. - [SoftwareSerial problems](#softwareserial-problems)
  33. - [ESP32 Notes](#esp32-notes)
  34. - [HardwareSerial](#hardwareserial)
  35. - [HttpClient](#httpclient)
  36. - [SAMD21](#samd21)
  37. - [Goouuu Tech IOT-GA6 vs AI-Thinker A6 confusion](#goouuu-tech-iot-ga6-vs-ai-thinker-a6-confusion)
  38. - [SIM800 and SSL](#sim800-and-ssl)
  39. - [Which version of the SIM7000 code to use](#which-version-of-the-sim7000-code-to-use)
  40. - [License](#license)
  41. ### Arduino Client interface support
  42. This library is easy to integrate with lots of sketches which use Ethernet or WiFi.
  43. **PubSubClient ([MQTT](http://mqtt.org/))**, **[Blynk](http://blynk.cc)**, **HTTP Client** and **File Download** examples are provided.
  44. ![examples](/extras/examples.png)
  45. ### TinyGSM is tiny
  46. The complete WebClient example for Arduino Uno (via Software Serial) takes little resources:
  47. ```
  48. Sketch uses 15022 bytes (46%) of program storage space. Maximum is 32256 bytes.
  49. Global variables use 574 bytes (28%) of dynamic memory, leaving 1474 bytes for local variables. Maximum is 2048 bytes.
  50. ```
  51. Arduino GSM library uses 15868 bytes (49%) of Flash and 1113 bytes (54%) of RAM in a similar scenario.
  52. TinyGSM also pulls data gently from the modem (whenever possible), so it can operate on very little RAM.
  53. **Now, you have more space for your experiments.**
  54. ## Supported modems
  55. - SIMCom SIM800 series (SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868)
  56. - SIMCom SIM900 series (SIM900A, SIM900D, SIM908, SIM968)
  57. - SIMCom WCDMA/HSPA/HSPA+ Modules (SIM5360, SIM5320, SIM5300E, SIM5300E/A)
  58. - SIMCom LTE Modules (SIM7100E, SIM7500E, SIM7500A, SIM7600C, SIM7600E)
  59. - SIMCom SIM7000E/A/G CAT-M1/NB-IoT Module
  60. - SIMCom SIM7070/SIM7080/SIM7090 CAT-M1/NB-IoT Module
  61. - AI-Thinker A6, A6C, A7, A20
  62. - ESP8266/ESP32 (AT commands interface, similar to GSM modems)
  63. - Digi XBee WiFi and Cellular (using XBee command mode)
  64. - Neoway M590
  65. - u-blox 2G, 3G, 4G, and LTE Cat1 Cellular Modems (many modules including LEON-G100, LISA-U2xx, SARA-G3xx, SARA-U2xx, TOBY-L2xx, LARA-R2xx, MPCI-L2xx)
  66. - u-blox LTE-M/NB-IoT Modems (SARA-R4xx, SARA-N4xx, _but NOT SARA-N2xx_)
  67. - Sequans Monarch LTE Cat M1/NB1 (VZM20Q)
  68. - Quectel BG96
  69. - Quectel M95
  70. - Quectel MC60 ***(alpha)***
  71. ### Supported boards/modules
  72. - Arduino MKR GSM 1400
  73. - GPRSbee
  74. - Microduino GSM
  75. - Adafruit FONA (Mini Cellular GSM Breakout)
  76. - Adafruit FONA 800/808 Shield
  77. - Industruino GSM
  78. - RAK WisLTE ***(alpha)***
  79. - ... other modules, based on supported modems. Some boards require [**special configuration**](https://github.com/vshymanskyy/TinyGSM/wiki/Board-configuration).
  80. More modems may be supported later:
  81. - [ ] Quectel M10, UG95
  82. - [ ] SIMCom SIM7020
  83. - [ ] Telit GL865
  84. - [ ] ZTE MG2639
  85. - [ ] Hi-Link HLK-RM04
  86. Watch this repo for new updates! And of course, contributions are welcome ;)
  87. ## Features
  88. **Data connections**
  89. - TCP (HTTP, MQTT, Blynk, ...)
  90. - ALL modules support TCP connections
  91. - Most modules support multiple simultaneous connections:
  92. - A6/A7 - 8
  93. - ESP8266 - 5
  94. - Neoway M590 - 2
  95. - Quectel BG96 - 12
  96. - Quectel M95 - 6
  97. - Quectel MC60/MC60E - 6
  98. - Sequans Monarch - 6
  99. - SIM 800/900 - 5
  100. - SIM 5360/5320/5300/7100 - 10
  101. - SIM7000 - 8 possible without SSL, only 2 with
  102. - SIM 7070/7080/7090 - 12
  103. - SIM 7500/7600/7800 - 10
  104. - u-blox 2G/3G - 7
  105. - u-blox SARA R4/N4 - 7
  106. - Digi XBee - _only 1 connection supported!_
  107. - UDP
  108. - Not yet supported on any module, though it may be some day
  109. - SSL/TLS (HTTPS)
  110. - Supported on:
  111. - SIM800, SIM7000, u-Blox, XBee _cellular_, ESP8266, and Sequans Monarch
  112. - Note: **only some device models or firmware revisions have this feature** (SIM8xx R14.18, A7, etc.)
  113. - Not yet supported on:
  114. - Quectel modems, SIM 5360/5320/7100, SIM 7500/7600/7800
  115. - Not possible on:
  116. - SIM900, A6/A7, Neoway M590, XBee _WiFi_
  117. - Like TCP, most modules support simultaneous connections
  118. - TCP and SSL connections can usually be mixed up to the total number of possible connections
  119. **USSD**
  120. - Sending USSD requests and decoding 7,8,16-bit responses
  121. - Supported on:
  122. - All SIMCom modems, Quectel modems, most u-blox
  123. - Not possible on:
  124. - XBee, u-blox SARA R4/N4, ESP8266 (obviously)
  125. **SMS**
  126. - Only _sending_ SMS is supported, not receiving
  127. - Supported on all cellular modules
  128. **Voice Calls**
  129. - Supported on:
  130. - SIM800/SIM900, SIM7600, A6/A7, Quectel modems, u-blox
  131. - Not yet supported on:
  132. - SIM7000, SIM5360/5320/7100, SIM7500/7800, VZM20Q (Monarch)
  133. - Not possible on:
  134. - XBee (any type), u-blox SARA R4/N4, Neoway M590, ESP8266 (obviously)
  135. - Functions:
  136. - Dial, hangup
  137. - DTMF sending
  138. **Location**
  139. - GPS/GNSS
  140. - SIM808, SIM7000, SIM7500/7600/7800, BG96, u-blox
  141. - NOTE: u-blox chips do _NOT_ have embedded GPS - this functionality only works if a secondary GPS is connected to primary cellular chip over I2C
  142. - GSM location service
  143. - SIM800, SIM7000, Quectel, u-blox
  144. **Credits**
  145. - Primary Authors/Contributors:
  146. - [vshymanskyy](https://github.com/vshymanskyy)
  147. - [SRGDamia1](https://github.com/SRGDamia1/)
  148. - SIM7000:
  149. - [captFuture](https://github.com/captFuture/)
  150. - [FStefanni](https://github.com/FStefanni/)
  151. - Sequans Monarch:
  152. - [nootropicdesign](https://github.com/nootropicdesign/)
  153. - Quectel M9C60
  154. - [V1pr](https://github.com/V1pr)
  155. - Quectel M95
  156. - [replicadeltd](https://github.com/replicadeltd)
  157. - Other Contributors:
  158. - https://github.com/vshymanskyy/TinyGSM/graphs/contributors
  159. ## Getting Started
  160. #### First Steps
  161. 1. Using your phone:
  162. - Disable PIN code on the SIM card
  163. - Check your balance
  164. - Check that APN, User, Pass are correct and you have internet
  165. 2. Ensure the SIM card is correctly inserted into the module
  166. 3. Ensure that GSM antenna is firmly attached
  167. 4. Ensure that you have a stable power supply to the module of at least **2A**.
  168. 5. Check if serial connection is working (Hardware Serial is recommended)
  169. Send an ```AT``` command using [this sketch](tools/AT_Debug/AT_Debug.ino)
  170. 6. Try out the [WebClient](https://github.com/vshymanskyy/TinyGSM/blob/master/examples/WebClient/WebClient.ino) example
  171. #### Writing your own code
  172. The general flow of your code should be:
  173. - Define the module that you are using (choose one and only one)
  174. - ie, ```#define TINY_GSM_MODEM_SIM800```
  175. - Included TinyGSM
  176. - ```#include <TinyGsmClient.h>```
  177. - Create a TinyGSM modem instance
  178. - ```TinyGsm modem(SerialAT);```
  179. - Create one or more TinyGSM client instances
  180. - For a single connection, use
  181. - ```TinyGsmClient client(modem);```
  182. or
  183. ```TinyGsmClientSecure client(modem);``` (on supported modules)
  184. - For multiple connections (on supported modules) use:
  185. - ```TinyGsmClient clientX(modem, 0);```, ```TinyGsmClient clientY(modem, 1);```, etc
  186. or
  187. - ```TinyGsmClientSecure clientX(modem, 0);```, ```TinyGsmClientSecure clientY(modem, 1);```, etc
  188. - Secure and insecure clients can usually be mixed when using multiple connections.
  189. - The total number of connections possible varies by module
  190. - Begin your serial communication and set all your pins as required to power your module and bring it to full functionality.
  191. - The examples attempt to guess the module's baud rate. In working code, you should use a set baud.
  192. - Wait for the module to be ready (could be as much as 6s, depending on the module)
  193. - Initialize the modem
  194. - ```modem.init()``` or ```modem.restart()```
  195. - restart generally takes longer than init but ensures the module doesn't have lingering connections
  196. - Unlock your SIM, if necessary:
  197. - ```modem.simUnlock(GSM_PIN)```
  198. - If using **WiFi**, specify your SSID information:
  199. - ```modem.networkConnect(wifiSSID, wifiPass)```
  200. - Network registration should be automatic on cellular modules
  201. - Wait for network registration to be successful
  202. - ```modem.waitForNetwork(600000L)```
  203. - If using cellular, establish the GPRS or EPS data connection _after_ your are successfully registered on the network
  204. - ```modem.gprsConnect(apn, gprsUser, gprsPass)``` (or simply ```modem.gprsConnect(apn)```)
  205. - The same command is used for both GPRS or EPS connection
  206. - If using a **Digi** brand cellular XBee, you must specify your GPRS/EPS connection information _before_ waiting for the network. This is true ONLY for _Digi cellular XBees_! _For all other cellular modules, use the GPRS connect function after network registration._
  207. - Connect the TCP or SSL client
  208. ```client.connect(server, port)```
  209. - Send out your data.
  210. #### If you have any issues
  211. 1. Read the whole README (you're looking at it!), particularly the troubleshooting section below.
  212. 2. Some boards require [**special configuration**](https://github.com/vshymanskyy/TinyGSM/wiki/Board-configuration).
  213. 3. Try running the Diagnostics sketch
  214. 4. Check for [**highlighted topics here**](https://github.com/vshymanskyy/TinyGSM/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22for+reference%22+)
  215. 5. If you have a question, please post it in our [Gitter chat](https://gitter.im/tinygsm)
  216. ## How does it work?
  217. Many GSM modems, WiFi and radio modules can be controlled by sending AT commands over Serial.
  218. TinyGSM knows which commands to send, and how to handle AT responses, and wraps that into standard Arduino Client interface.
  219. This library is "blocking" in all of its communication.
  220. Depending on the function, your code may be blocked for a long time waiting for the module responses.
  221. Apart from the obvious (ie, `waitForNetwork()`) several other functions may block your code for up to several *minutes*.
  222. The `gprsConnect()` and `client.connect()` functions commonly block the longest, especially in poorer service regions.
  223. The module shutdown and restart may also be quite slow.
  224. This libary *does not* support any sort of "hardware" or pin level controls for the modules.
  225. If you need to turn your module on or reset it using some sort of High/Low/High pin sequence, you must write those functions yourself.
  226. ## API Reference
  227. For GPRS data streams, this library provides the standard [Arduino Client](https://www.arduino.cc/en/Reference/ClientConstructor) interface.
  228. For additional functions, please refer to [this example sketch](examples/AllFunctions/AllFunctions.ino)
  229. ## Troubleshooting
  230. ### Ensure stable data & power connection
  231. Most modules require _**as much as 2A**_ to properly connect to the network.
  232. This is 4x what a "standard" USB will supply!
  233. Improving the power supply actually solves stability problems in **many** cases!
  234. - Read about [**powering your module**](https://github.com/vshymanskyy/TinyGSM/wiki/Powering-GSM-module).
  235. - Keep your wires as short as possible
  236. - Consider soldering them for a stable connection
  237. - Do not put your wires next to noisy signal sources (buck converters, antennas, oscillators etc.)
  238. - If everything else seems to be working but you are unable to connect to the network, check your power supply!
  239. ### Baud rates
  240. Most modules support some sort of "auto-bauding" feature where the module will attempt to adjust it's baud rate to match what it is receiving.
  241. TinyGSM also implements its own auto bauding function (`TinyGsmAutoBaud(SerialAT, GSM_AUTOBAUD_MIN, GSM_AUTOBAUD_MAX);`).
  242. While very useful when initially connecting to a module and doing tests, these should **NOT** be used in any sort of production code.
  243. Once you've established communication with the module, set the baud rate using the `setBaud(#)` function and stick with that rate.
  244. ### Broken initial configuration
  245. Sometimes (especially if you played with AT commands), your module configuration may become invalid.
  246. This may result in problems such as:
  247. * Can't connect to the GPRS network
  248. * Can't connect to the server
  249. * Sent/received data contains invalid bytes
  250. * etc.
  251. To return module to **Factory Defaults**, use this sketch:
  252. File -> Examples -> TinyGSM -> tools -> [FactoryReset](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/FactoryReset/FactoryReset.ino)
  253. In some cases, you may need to set an initial APN to connect to the cellular network.
  254. Try using the ```gprsConnect(APN)``` function to set an initial APN if you are unable to register on the network.
  255. You may need set the APN again after registering.
  256. (In most cases, you should set the APN after registration.)
  257. ### Failed connection or no data received
  258. The first connection with a new SIM card, a new module, or at a new location/tower may take a *LONG* time - up to 15 minutes or even more, especially if the signal quality isn't excellent.
  259. If it is your first connection, you may need to adjust your wait times and possibly go to lunch while you're waiting.
  260. If you are able to open a TCP connection but have the connection close before receiving data, try adding a keep-alive header to your request.
  261. Some modules (ie, the SIM7000 in SSL mode) will immediately throw away any un-read data when the remote server closes the connection - sometimes without even giving a notification that data arrived in the first place.
  262. When using MQTT, to keep a continuous connection you may need to reduce your keep-alive interval (PINGREQ/PINGRESP).
  263. ### Diagnostics sketch
  264. Use this sketch to help diagnose SIM card and GPRS connection issues:
  265. File -> Examples -> TinyGSM -> tools -> [Diagnostics](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/Diagnostics/Diagnostics.ino)
  266. If the diagnostics fail, uncomment this line to output some debugging comments from the library:
  267. ```cpp
  268. #define TINY_GSM_DEBUG SerialMon
  269. ```
  270. In any custom code, ```TINY_GSM_DEBUG``` must be defined before including the TinyGSM library.
  271. If you are unable to see any obvious errors in the library debugging, use [StreamDebugger](https://github.com/vshymanskyy/StreamDebugger) to copy the entire AT command sequence to the main serial port.
  272. In the diagnostics example, simply uncomment the line:
  273. ```cpp
  274. #define DUMP_AT_COMMANDS
  275. ```
  276. In custom code, you can add this snippit:
  277. ```cpp
  278. #ifdef DUMP_AT_COMMANDS
  279. #include <StreamDebugger.h>
  280. StreamDebugger debugger(SerialAT, SerialMon);
  281. TinyGsm modem(debugger);
  282. #else
  283. TinyGsm modem(SerialAT);
  284. #endif
  285. ```
  286. ### Web request formatting problems - "but it works with PostMan"
  287. This library opens a TCP (or SSL) connection to a server.
  288. In the [OSI model](https://en.wikipedia.org/wiki/OSI_model), that's [layer 4](http://www.tcpipguide.com/free/t_TransportLayerLayer4.htm) (or 5 for SSL).
  289. HTTP (GET/POST), MQTT, and most of the other functions you probably want to use live up at [layer 7](http://www.tcpipguide.com/free/t_ApplicationLayerLayer7.htm).
  290. This means that you need to either manually code the top layer or use another library (like [HTTPClient](https://github.com/arduino-libraries/ArduinoHttpClient) or [PubSubClient](https://pubsubclient.knolleary.net/)) to do it for you.
  291. Tools like [PostMan](https://www.postman.com/) also show layer 7, not layer 4/5 like TinyGSM.
  292. If you are successfully connecting to a server, but getting responses of "bad request" (or no response), the issue is probably your formatting.
  293. Here are some tips for writing layer 7 (particularly HTTP request) manually:
  294. - Look at the "WebClient" example
  295. - Make sure you are including all required headers.
  296. - If you are testing with PostMan, make sure you un-hide and look at the "auto-generated" headers; you'll probably be surprised by how many of them there are.
  297. - Use ```client.print("...")```, or ```client.write(buf, #)```, or even ```client.write(String("..."))```, not ```client.write("...")``` to help prevent text being sent out one character at a time (typewriter style)
  298. - Enclose the entirety of each header or line within a single string or print statement
  299. - use
  300. ```cpp
  301. client.print(String("GET ") + resource + " HTTP/1.1\r\n");
  302. ```
  303. instead of
  304. ```cpp
  305. client.print("GET ");
  306. client.print(resource);
  307. client.println(" HTTP/1.1")
  308. ```
  309. - Make sure there is one entirely blank line between the last header and the content of any POST request.
  310. - Add two lines to the last header ```client.print("....\r\n\r\n")``` or put in an extra ```client.println()```
  311. - This is an HTTP requirement and is really easy to miss.
  312. ### SoftwareSerial problems
  313. When using ```SoftwareSerial``` (on Uno, Nano, etc), the speed **115200** may not work.
  314. Try selecting **57600**, **38400**, or even lower - the one that works best for you.
  315. In some cases **9600** is unstable, but using **38400** helps, etc.
  316. Be sure to set correct TX/RX pins in the sketch. Please note that not every Arduino pin can serve as TX or RX pin.
  317. **Read more about SoftSerial options and configuration [here](https://www.pjrc.com/teensy/td_libs_AltSoftSerial.html) and [here](https://www.arduino.cc/en/Reference/SoftwareSerial).**
  318. ### ESP32 Notes
  319. #### HardwareSerial
  320. When using ESP32 `HardwareSerial`, you may need to specify additional parameters to the `.begin()` call.
  321. Please [refer to this comment](https://github.com/vshymanskyy/TinyGSM/issues/91#issuecomment-356024747).
  322. #### HttpClient
  323. You will not be able to compile the HttpClient or HttpsClient examples with ESP32 core 1.0.2. Upgrade to 1.0.3, downgrade to version 1.0.1 or use the WebClient example.
  324. ### SAMD21
  325. When using SAMD21-based boards, you may need to use a sercom uart port instead of `Serial1`.
  326. Please [refer to this comment](https://github.com/vshymanskyy/TinyGSM/issues/102#issuecomment-345548941).
  327. ### Goouuu Tech IOT-GA6 vs AI-Thinker A6 confusion
  328. It turns out that **Goouuu Tech IOT-GA6** is not the same as **AI-Thinker A6**. Unfortunately IOT-GA6 is not supported out of the box yet. There are some hints that IOT-GA6 firmware may be updated to match A6... See [this topic](https://github.com/vshymanskyy/TinyGSM/issues/164).
  329. ### SIM800 and SSL
  330. Some, but not all, versions of the SIM800 support SSL.
  331. Having SSL support depends on the firmware version and the individual module.
  332. Users have had varying levels of success in using SSL on the SIM800 even with apparently identical firmware.
  333. If you need SSL and it does not appear to be working on your SIM800, try a different module or try using a secondary SSL library.
  334. ### Which version of the SIM7000 code to use
  335. There are two versions of the SIM7000 code, one using `TINY_GSM_MODEM_SIM7000` and another with `TINY_GSM_MODEM_SIM7000SSL`.
  336. The `TINY_GSM_MODEM_SIM7000` version *does not support SSL* but supports up to 8 simultaneous connections.
  337. The `TINY_GSM_MODEM_SIM7000SSL` version supports both SSL *and unsecured connections* with up to 2 simultaneous connections.
  338. So why are there two versions?
  339. The "SSL" version uses the SIM7000's "application" commands while the other uses the "TCP-IP toolkit".
  340. Depending on your region/firmware, one or the other may not work for you.
  341. Try both and use whichever is more stable.
  342. If you do not need SSL, I recommend starting with `TINY_GSM_MODEM_SIM7000`.
  343. __________
  344. ## License
  345. This project is released under
  346. The GNU Lesser General Public License (LGPL-3.0)