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:
1:110b5e896bc9
Parent:
0:1902469bdd2d
Child:
3:3f35e80ed848
diff -r 1902469bdd2d -r 110b5e896bc9 source/main.cpp
--- a/source/main.cpp	Tue Feb 20 11:21:41 2018 +0000
+++ b/source/main.cpp	Mon Feb 26 10:10:37 2018 +0000
@@ -81,7 +81,7 @@
     /* connection */
     ble.gap().onConnection(connectionCallback);
     ble.gap().setScanParams(600, 200);    //(scanInterval,scanWindow)ms
-    ble.gap().setScanTimeout(0x0003);     //stop scanning after N sec
+    ble.gap().setScanTimeout(0x0004);     //stop scanning after N sec
     ble.gap().onTimeout(onStopScan);      //callback when scan stops