3/19/2019
Wio Tracker - GPS, BT3.0, GSM, Arduino Compatible - Seeed Wiki
http://wiki.seeedstudio.com/wio_gps_board/
17/20
SMS Message Read
The following example shows how to read sms messages on Wio Tracker. Nano
SIM card is needed in this example.
Open your Arduino IDE and click on File > Examples > MC20_GPS_Traker >
MC20_SMSRead to open the sketch or copy the blow code:
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
while
(!gnss.open_GNSS()){
delay(
1000
);
}
SerialUSB.println(
"Open GNSS OK."
);
}
void
loop
() {
// gnss.dataFlowMode();
if
(gnss.getCoordinate()){
SerialUSB.print(
"GNSS: "
);
SerialUSB.print(gnss.longitude,
6
);
SerialUSB.print(
","
);
SerialUSB.println(gnss.latitude,
6
);
}
else
{
SerialUSB.println(
"Error!"
);
}
delay(
1000
);
}
1
2
3
4
5
6
7
8
9
10
11
12
#include
"MC20_Common.h"
#include
"MC20_Arduino_Interface.h"
#define RGBPIN 10
char
phone[
32
];
char
dateTime[
32
];
char
buffer[
64
];
int
i =
0
;
char
*s =
NULL
;
int
inComing =
0
;