Example program for the UbloxCellularDriverGen class, providing SMS, USSD and module file system support. This program may be used on the C027 and C030 (non N2xx-flavour) boards.
Dependencies: ublox-cellular-driver-gen ublox-cellular-base
Diff: main.cpp
- Revision:
- 7:414c52e89560
- Parent:
- 5:77134c30d863
--- a/main.cpp Wed Jun 14 13:11:10 2017 +0000 +++ b/main.cpp Thu Jun 15 01:16:29 2017 +0100 @@ -170,7 +170,7 @@ // USSD OPERATIONS printf("=== USSD ===\n"); - printf("Getting the IMSI...\n"); + printf("Sending *100#...\n"); if (driver->ussdCommand("*100#", buf, sizeof (buf))) { pulseEvent(); printf("Answer was %s.\n", buf); @@ -218,7 +218,7 @@ printf("No destination SMS number has been defined (edit DESTINATION_SMS_NUMBER in this file to add one).\n"); } - printf("Waiting for SMS messages to arrive in a loop until the user button is pressed on C030 or forever on C027......\n"); + printf("Waiting for SMS messages to arrive in a loop (until the user button is pressed on C030 or forever on C027)...\n"); while (!buttonPressed) { x = driver->smsList("REC UNREAD", index, sizeof(index)); for (int y = 0; y < x; y++) {