I'm trying out BLE using the CIQPi example as a model. I'm trying to connect to a Raspberry Pi but with an application written in C++ using the bluez bluetoothd rather than nodejs. Whenever I try to read the characteristic onCharacteristicRead is called with error code 13, not STATUS_READ_FAIL which is 12. What does this error code mean?
The characteristic can be read fine using nRF connect on Android. If I switch the UUIDs I can read successfully from the CIQPi nodejs application or from a Nordic Semi Thingy. Writing a characteristic also works although onCharacteristicWrite doesn't seem to be called.
It looks as though the problem is in getting the result back from the Pi to ConnectIQ since my callback on the Pi is called, although it seems to be called four times for each request in the simulator. There's nothing in the logs on the Pi to suggest an error. Has anyone succeeded in using ConnectIQ to interact with an application on a Raspberry Pi using, say Python, rather than nodejs?
Any help would be appreciated.