Based on the DA1469x Custom bluetooth service example project.
This application reads values from i2c-connected sensors (which monitor a plant's environment) and provides this data via a BLE GATT service.
The BlueTanist android app can be used to interact with this application.
- Dialog DA14695 Development Kit – USB
- Dialog SmartSnippets
- Dialog SDK >= 10.0.8.105
- clone this reposity to
<DIALOG SDK>/projects
$ cd ~/DIALOG/SDK_10.0.8.105/projects $ git clone https://github.com/pgils/ble_plant_monitor.git
- Update drivers (if needed; currently only BMP180 uses external driver)
$ cd ble_plant_monitor $ git submodule init $ git submodule update
- Import project into SmartSnippets
- Enable needed drivers in
custom_config_xxx.h
e.g:#define dg_configSENSOR_BMP180 ( 0 ) #define dg_configSENSOR_HIH6130 ( 1 )