I am trying to implement a simple circuit where mobile user sends 0 or 1 to Red Bear duo via BLE. This is very simple with standard Bluetooth but the BLE examples in github for Redbear Duo do not have such functionality and all empty inside loop(). I tried adding the code below in loop but code fails to compile so can not test on device