This software setup a central node of a star topology network

Dependencies:   MQTT target_st_bluenrg

Fork of ble-star-mbed by Lorenzo Invidia

Revision:
3:3f35e80ed848
Parent:
1:110b5e896bc9
Child:
4:4af40af2530e
--- a/source/main.cpp	Mon Feb 26 12:29:03 2018 +0000
+++ b/source/main.cpp	Tue Mar 13 16:31:07 2018 +0000
@@ -80,7 +80,7 @@
     ble.gap().onDisconnection(disconnectionCallback);    
     /* connection */
     ble.gap().onConnection(connectionCallback);
-    ble.gap().setScanParams(600, 200);    //(scanInterval,scanWindow)ms
+    ble.gap().setScanParams(400, 200);    //(scanInterval,scanWindow)ms
     ble.gap().setScanTimeout(0x0004);     //stop scanning after N sec
     ble.gap().onTimeout(onStopScan);      //callback when scan stops