This is a simple project that I make to demonstrate the BLE capabilities of Arduino 101.
I make this project based on the tutorial titled Arduino 101 Bluetooth Low Energy. In the tutorial, a Grove kit and rotary angle sensor are used. I don't have those hardware ready, but I use the magnetic door sensor.
For details, you can refer the said tutorial.
.Arduino IDE sketch
Here is a screen capture of the Arduino IDE with the DoorSensorSketch. Full sketch is presented in the code section below.
.Android device App
I downloaded and installed the
nRF Connect from app store. There are other similar BLE Android apps which you can use. Start the app and scan and connect to the DoorSensorSketch.
This is a simple project that demonstrates the read capability of the Arduino 101 device.