This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
JSD
/
TinyGSM_Senseright
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Added all modems to examples, added debug with name, bump version
v_master
Sara Damiano
6 years ago
parent
2423b9fdf2
commit
57cd8f0c5c
21 changed files
with
74 additions
and
19 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-2
examples/BlynkClient/BlynkClient.ino
+5
-2
examples/FileDownload/FileDownload.ino
+6
-2
examples/HttpClient/HttpClient.ino
+11
-1
examples/HttpsClient/HttpsClient.ino
+5
-2
examples/MqttClient/MqttClient.ino
+6
-2
examples/WebClient/WebClient.ino
+1
-1
library.json
+1
-1
library.properties
+2
-0
src/TinyGsmClientA6.h
+2
-0
src/TinyGsmClientBG96.h
+2
-0
src/TinyGsmClientESP8266.h
+2
-0
src/TinyGsmClientM590.h
+2
-0
src/TinyGsmClientM95.h
+2
-0
src/TinyGsmClientMC60.h
+2
-0
src/TinyGsmClientSIM800.h
+1
-0
src/TinyGsmClientSIM808.h
+2
-0
src/TinyGsmClientUBLOX.h
+2
-0
src/TinyGsmClientXBee.h
+5
-2
tools/AT_Debug/AT_Debug.ino
+5
-2
tools/Diagnostics/Diagnostics.ino
+5
-2
tools/FactoryReset/FactoryReset.ino
+ 5
- 2
examples/BlynkClient/BlynkClient.ino
View File
@ -30,13 +30,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -95,4 +99,3 @@ void loop()
{
Blynk
.
run
(
)
;
}
+ 5
- 2
examples/FileDownload/FileDownload.ino
View File
@ -15,13 +15,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -204,4 +208,3 @@ void loop() {
delay
(
1000
)
;
}
}
+ 6
- 2
examples/HttpClient/HttpClient.ino
View File
@ -16,14 +16,19 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
// Increase RX buffer if needed
//#define TINY_GSM_RX_BUFFER 512
@ -157,4 +162,3 @@ void loop() {
delay
(
1000
)
;
}
}
+ 11
- 1
examples/HttpsClient/HttpsClient.ino
View File
@ -18,8 +18,19 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
// Increase RX buffer if needed
//#define TINY_GSM_RX_BUFFER 512
@ -159,4 +170,3 @@ void loop() {
delay
(
1000
)
;
}
}
+ 5
- 2
examples/MqttClient/MqttClient.ino
View File
@ -29,13 +29,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -171,4 +175,3 @@ void mqttCallback(char* topic, byte* payload, unsigned int len) {
mqtt
.
publish
(
topicLedStatus
,
ledStatus
?
"
1
"
:
"
0
"
)
;
}
}
+ 6
- 2
examples/WebClient/WebClient.ino
View File
@ -10,14 +10,19 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
// Increase RX buffer if needed
//#define TINY_GSM_RX_BUFFER 512
@ -145,4 +150,3 @@ void loop() {
delay
(
1000
)
;
}
}
+ 1
- 1
library.json
View File
@ -1,6 +1,6 @@
{
"name"
:
"TinyGSM"
,
"version"
:
"0.
3.6
"
,
"version"
:
"0.
4.0
"
,
"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.
3.6
version=0.
4.0
author=Volodymyr Shymanskyy
maintainer=Volodymyr Shymanskyy
sentence=A small Arduino library for GPRS modules, that just works.
+ 2
- 0
src/TinyGsmClientA6.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientA6_h
#
define TinyGsmClientA6_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientA6
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
@ -188,6 +189,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientBG96.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientBG96_h
#
define TinyGsmClientBG96_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientBG96
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
/
/
#
define
TINY_GSM_USE_HEX
@ -212,6 +213,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientESP8266.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientESP8266_h
#
define TinyGsmClientESP8266_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientESP8266
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
@ -205,6 +206,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientM590.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientM590_h
#
define TinyGsmClientM590_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientM590
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
@ -185,6 +186,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientM95.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientM95_h
#
define TinyGsmClientM95_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientM95
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
/
/
#
define
TINY_GSM_USE_HEX
@ -212,6 +213,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientMC60.h
View File
@ -11,6 +11,7 @@
#
ifndef TinyGsmClientMC60_h
#
define TinyGsmClientMC60_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientMC60
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
/
/
#
define
TINY_GSM_USE_HEX
@ -216,6 +217,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientSIM800.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientSIM800_h
#
define TinyGsmClientSIM800_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientSIM800
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
/
/
#
define
TINY_GSM_USE_HEX
@ -221,6 +222,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 1
- 0
src/TinyGsmClientSIM808.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientSIM808_h
#
define TinyGsmClientSIM808_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientSIM808
"
)
#
include
<TinyGsmClientSIM800.h>
+ 2
- 0
src/TinyGsmClientUBLOX.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientUBLOX_h
#
define TinyGsmClientUBLOX_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientUBLOX
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
@ -211,6 +212,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
if
(
!
testAT
(
)
)
{
return
false
;
}
+ 2
- 0
src/TinyGsmClientXBee.h
View File
@ -8,6 +8,7 @@
#
ifndef TinyGsmClientXBee_h
#
define TinyGsmClientXBee_h
/
/
#
pragma
message
(
"
TinyGSM: TinyGsmClientXBee
"
)
/
/
#
define
TINY_GSM_DEBUG
Serial
@ -215,6 +216,7 @@ public:
*/
bool
init
(
const
char
*
pin
=
NULL
)
{
DBG
(
GF
(
"
### Modem Defined:
"
)
,
getModemName
(
)
)
;
guardTime
=
1100
;
/
/
Start
with
a
default
guard
time
of
1
second
if
(
!
commandMode
(
10
)
)
return
false
;
/
/
Try
up
to
10
times
for
the
init
+ 5
- 2
tools/AT_Debug/AT_Debug.ino
View File
@ -10,13 +10,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -79,4 +83,3 @@ void loop() {
delay
(
0
)
;
}
}
+ 5
- 2
tools/Diagnostics/Diagnostics.ino
View File
@ -11,13 +11,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -183,4 +187,3 @@ void loop() {
delay
(
1000
)
;
}
}
+ 5
- 2
tools/FactoryReset/FactoryReset.ino
View File
@ -11,13 +11,17 @@
// Select your modem:
#
define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_XBEE
@ -67,4 +71,3 @@ void setup() {
void
loop
(
)
{
}
Write
Preview
Loading…
Cancel
Save