Simple test for USSD message.

Dependencies:   C027 UbloxUSBModem mbed

Fork of C027_USSDTest by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Mon Oct 21 15:41:53 2013 +0000
Parent:
3:08248ee71fc0
Child:
5:33c7002b7579
Commit message:
draft version (untested)

Changed in this revision

C027.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/C027.lib	Mon Oct 21 08:51:10 2013 +0000
+++ b/C027.lib	Mon Oct 21 15:41:53 2013 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/ublox/code/C027/#7f910a8e77ee
+http://mbed.org/teams/ublox/code/C027/#ff17f16cf70a
--- a/main.cpp	Mon Oct 21 08:51:10 2013 +0000
+++ b/main.cpp	Mon Oct 21 15:41:53 2013 +0000
@@ -5,7 +5,7 @@
 
 #define USSD_COMMAND "*#134#"
 
-void test(void const*) 
+void test(void const*)
 {
     UbloxUSBGSMModem modem; // for LISA-C use the UbloxUSBCDMAModem instead
     char result[32];
@@ -13,10 +13,9 @@
     printf("Sending %s on USSD channel\n", USSD_COMMAND);
 
     int ret = modem.sendUSSD(USSD_COMMAND, result, 32);
-    if(ret)
-    {
-      printf("Send USSD command returned %d\n", ret);
-    } 
+    if(ret) {
+        printf("Send USSD command returned %d\n", ret);
+    }
 
     printf("Result of command: %s\n", result);
 
@@ -28,13 +27,12 @@
 
 int main()
 {
-  Thread testTask(test, NULL, osPriorityNormal, 1024 * 4);
-  DigitalOut led(A0);
-  while(1)
-  {
-    led=!led;
-    Thread::wait(1000);  
-  }
+    Thread testTask(test, NULL, osPriorityNormal, 1024 * 4);
+    DigitalOut led(A0);
+    while(1) {
+        led=!led;
+        Thread::wait(1000);
+    }
 
-  return 0;
+    return 0;
 }