BLE RegisterForIntegers help

Hi!
I'm trying to read values from Linkit 7697 and send it to App Inventor using RegisterForIntegers/IntegersReceived but until now without any hope...
(okay.. I'm new to this stuff!)
Attached is my Arduino code and aia-file.
The app inventor code to get the build-in LED on/off is working fine.
Please help/guide to get the right code in Arduino.
When I enable the function RegisterForIntegers in app inventor the app just crashes...
iotRW.txt is the .ino file
BLE_LED_7697 (1).aia (192.8 KB)

iotRW.txt (1.8 KB)