This is an example of BLE GATT Client, which receives broadcast data from BLE_Server_BME280 ( a GATT server) , then transfers values up to mbed Device Connector (cloud).
Please refer details about BLEClient_mbedDevConn below. https://github.com/soramame21/BLEClient_mbedDevConn
The location of required BLE GATT server, BLE_Server_BME280, is at here. https://developer.mbed.org/users/edamame22/code/BLE_Server_BME280/
mbed_app.json@2:b894b3508057, 2017-09-05 (annotated)
- Committer:
- Ren Boting
- Date:
- Tue Sep 05 11:56:13 2017 +0900
- Revision:
- 2:b894b3508057
- Parent:
- 0:29983394c6b6
Update all libraries and reform main.cpp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
edamame22 | 0:29983394c6b6 | 1 | { |
edamame22 | 0:29983394c6b6 | 2 | "config": { |
edamame22 | 0:29983394c6b6 | 3 | "network-interface":{ |
edamame22 | 0:29983394c6b6 | 4 | "help": "options are ETHERNET,WIFI", |
edamame22 | 0:29983394c6b6 | 5 | "value": "ETHERNET" |
edamame22 | 0:29983394c6b6 | 6 | }, |
edamame22 | 0:29983394c6b6 | 7 | "wifi-ssid": { |
edamame22 | 0:29983394c6b6 | 8 | "help": "WiFi SSID", |
edamame22 | 0:29983394c6b6 | 9 | "value": "\"SSID\"" |
edamame22 | 0:29983394c6b6 | 10 | }, |
edamame22 | 0:29983394c6b6 | 11 | "wifi-password": { |
edamame22 | 0:29983394c6b6 | 12 | "help": "WiFi Password", |
edamame22 | 0:29983394c6b6 | 13 | "value": "\"Password\"" |
edamame22 | 0:29983394c6b6 | 14 | }, |
edamame22 | 0:29983394c6b6 | 15 | "wifi-tx": { |
edamame22 | 0:29983394c6b6 | 16 | "help": "TX pin for serial connection to external device", |
edamame22 | 0:29983394c6b6 | 17 | "value": "D1" |
edamame22 | 0:29983394c6b6 | 18 | }, |
edamame22 | 0:29983394c6b6 | 19 | "wifi-rx": { |
edamame22 | 0:29983394c6b6 | 20 | "help": "RX pin for serial connection to external device", |
edamame22 | 0:29983394c6b6 | 21 | "value": "D0" |
edamame22 | 0:29983394c6b6 | 22 | } |
edamame22 | 0:29983394c6b6 | 23 | }, |
edamame22 | 0:29983394c6b6 | 24 | "macros": ["MBEDTLS_USER_CONFIG_FILE=\"mbedtls_mbed_client_config.h\""], |
edamame22 | 0:29983394c6b6 | 25 | "target_overrides": { |
edamame22 | 0:29983394c6b6 | 26 | "*": { |
edamame22 | 0:29983394c6b6 | 27 | "target.features_add": ["NANOSTACK", "LOWPAN_ROUTER", "COMMON_PAL"], |
edamame22 | 0:29983394c6b6 | 28 | "mbed-mesh-api.6lowpan-nd-channel-page": 0, |
edamame22 | 0:29983394c6b6 | 29 | "mbed-mesh-api.6lowpan-nd-channel": 12, |
edamame22 | 0:29983394c6b6 | 30 | "mbed-trace.enable": 0 |
edamame22 | 0:29983394c6b6 | 31 | }, |
edamame22 | 0:29983394c6b6 | 32 | "NUCLEO_F429ZI": { |
edamame22 | 0:29983394c6b6 | 33 | "target.features_add": ["BLE"], |
edamame22 | 0:29983394c6b6 | 34 | "target.extra_labels_add": ["ST_BLUENRG"], |
edamame22 | 0:29983394c6b6 | 35 | "target.macros_add": ["IDB0XA1_D13_PATCH"] |
edamame22 | 0:29983394c6b6 | 36 | }, |
edamame22 | 0:29983394c6b6 | 37 | "K64F": { |
edamame22 | 0:29983394c6b6 | 38 | "target.features_add": ["BLE"], |
edamame22 | 0:29983394c6b6 | 39 | "target.extra_labels_add": ["ST_BLUENRG"], |
edamame22 | 0:29983394c6b6 | 40 | "target.macros_add": ["IDB0XA1_D13_PATCH"] |
edamame22 | 0:29983394c6b6 | 41 | }, |
edamame22 | 0:29983394c6b6 | 42 | "NUCLEO_F401RE": { |
edamame22 | 0:29983394c6b6 | 43 | "wifi-tx": "PA_11", |
edamame22 | 0:29983394c6b6 | 44 | "wifi-rx": "PA_12" |
edamame22 | 0:29983394c6b6 | 45 | }, |
edamame22 | 0:29983394c6b6 | 46 | "NUCLEO_F411RE": { |
edamame22 | 0:29983394c6b6 | 47 | "wifi-tx": "PA_11", |
edamame22 | 0:29983394c6b6 | 48 | "wifi-rx": "PA_12" |
edamame22 | 0:29983394c6b6 | 49 | } |
edamame22 | 0:29983394c6b6 | 50 | } |
edamame22 | 0:29983394c6b6 | 51 | } |