BLE ADV Gateway, converts advertisement to proper JSON serial output

Dependencies:   BLE_API mbed mbedtls nRF51822

Revision:
1:790c863a9ebd
Parent:
0:3dc6e424dba0
Child:
2:b935358da5ba
--- a/main.cpp	Tue Jul 14 07:09:47 2015 +0000
+++ b/main.cpp	Wed Jul 15 03:28:13 2015 +0000
@@ -59,7 +59,7 @@
                 ble.gap().clearAdvertisingPayload();
             }
             /* Setup advertising. */
-            ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_LIMITED_DISCOVERABLE);
+            ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::BREDR_NOT_SUPPORTED | GapAdvertisingData::LE_GENERAL_DISCOVERABLE);
             ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::UNKNOWN);
             ble.gap().accumulateAdvertisingPayload(GapAdvertisingData::MANUFACTURER_SPECIFIC_DATA, (uint8_t *)ADV_INFO, sizeof(ADV_INFO));
             ble.gap().setAdvertisingType(GapAdvertisingParams::ADV_NON_CONNECTABLE_UNDIRECTED);