I am developing a bluetooth low energy application for the Samsung Galaxy S3. I am using Broadcom ble jar file into my project. I am able to search the TI CC2540 ble device.
But when I try to connect the Galaxy S3 to CC2540, I immediately get a null pointer exception and I am not able to connect to it. I tried many times but I am not able to connect to it. Below is the line of code in my application which connects to the remote ble device.
mFindMe.connect(mDevice);
mfindme
is my HRM profile and mDevice
is the bluetooth address of my CC2540 TI ble device.
It always throws a null pointer exception when I try to connect to the device.