Test MLDP code for Microchip RN4020 BLE

Dependencies:   mbed-src mbed-rtos MODSERIAL

Revision:
1:2b5aaaddd35e
Parent:
0:49a7ebfbee00
Child:
2:6dd5f9113367
--- a/main.cpp	Sat May 13 11:11:00 2017 +0000
+++ b/main.cpp	Wed Mar 13 19:13:09 2019 +0000
@@ -46,19 +46,20 @@
     // sets the services supported
     send_cmd("SS,C0000001\n");          // Private Service + Device Information
     osDelay(500);
-    pc.printf("SS,C0000001\n");
+    send_cmd("GS\n");
     
     
     // sets the supported features of current RN4020 module
-    send_cmd("SR,20002000\n");          // Auto Advertise-Server Only                                        
+    // Auto Advertise 
+    send_cmd("SR,20000000\n");                                              
     osDelay(500);
-    pc.printf("SR,20002000\n");
+    send_cmd("GR\n");
    
     
     // sets the device name
     send_cmd("SN,RN4020\n");           
     osDelay(500);
-    pc.printf("SN,RN4020\n");
+    send_cmd("GN\n");
     
     
     // Clear private service
@@ -95,12 +96,6 @@
     send_cmd("R,1\n"); 
     osDelay(500);                 
     pc.printf("R,1\n");
-  
-  
-    // Start advertising
-    send_cmd("A\n");
-    osDelay(500);                   
-    pc.printf("A\n");
     
     
     osDelay(2000); 
@@ -109,9 +104,7 @@
     // Show list of Services
     send_cmd("LS\n");
     osDelay(500);                   
-    pc.printf("LS\n");
-    
-      
+     
     start_ble = true;
 }