send

Dependencies:   mbed

Revision:
0:867991ea3c77
diff -r 000000000000 -r 867991ea3c77 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 26 01:15:52 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "stdio.h"
+
+int main()
+{
+    int cpt=1;
+    char tmp[30]="AT$SS=00 12 FF 42 \r\n";//AT$SS=00 12 FF 42 \r\n
+    
+    Serial s(PA_0,PA_1);
+    s.baud(9600);
+    s.format(8,SerialBase::None,1);
+    
+   
+    while(1) 
+    {
+        s.printf(tmp);
+        cpt++;   
+        wait (60);    
+    }
+}                                            
\ No newline at end of file