whatever

Dependencies:   C027 C027_Support M2XStreamClient PowerControl jsonlite mbed-rtos mbed

Fork of PONY_Ph0-uAXIS by Sean McBeath

Revision:
30:f9bb5aba1155
Parent:
29:ba8210c0cc31
Child:
31:f94b8f987b62
--- a/main.cpp	Wed Nov 18 23:17:00 2015 +0000
+++ b/main.cpp	Thu Nov 19 19:14:39 2015 +0000
@@ -20,17 +20,51 @@
 // These parameters are ignored for LISA-C200 variants and can be left NULL.
 //------------------------------------------------------------------------------------
 //! Set your secret SIM pin here (e.g. "1234"). Check your SIM manual.
-#define SIMPIN      1111
+#define SIMPIN      "1111"
 /*! The APN of your network operator SIM, sometimes it is "internet" check your 
     contract with the network operator. You can also try to look-up your settings in 
     google: https://www.google.de/search?q=APN+list */
-#define APN         m2m.com.attz
+#define APN         "m2m.com.attz"
 //! Set the user name for your APN, or NULL if not needed
 #define USERNAME    NULL
 //! Set the password for your APN, or NULL if not needed
 #define PASSWORD    NULL 
 //------------------------------------------------------------------------------------
 
+// Set pinout for LED
+DigitalOut myled(LED); 
+
+int main(void) {
+    printf("\n\n----------\nI'm alive!\n");
+    
+    while(1) {
+        myled = !myled;
+        wait(0.2);
+    }
+    
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+/*
+
 int main(void)
 {
     int ret;
@@ -240,9 +274,9 @@
                     mdm.smsDelete(ix[n]);
                     // provide a reply
                     const char* reply = "Hello my friend";
-                    if (strstr(buf, /*w*/"here are you"))
+                    if (strstr(buf, "here are you"))    // Omits opening "W" or "w" for case insensitive search
                         reply = *link ? link : "I don't know"; // reply wil location link
-                    else if (strstr(buf, /*s*/"hutdown"))
+                    else if (strstr(buf, "hutdown"))    // Omits opening "S" or "s" for case insensitive search
                         abort = true, reply = "bye bye";
                     printf("Send SMS reply \"%s\" to \"%s\"\r\n", reply, num);
                     mdm.smsSend(num, reply);
@@ -255,3 +289,6 @@
     mdm.powerOff();
     return 0;
 }
+
+
+*/
\ No newline at end of file