« first day  last day (15 days later) » 

12:22 AM
I seem to have got the android sample from the dev site working - it is now also reading in the data the app you sent delivers
 
 
8 hours later…
8:44 AM
Okay so is your app working now too?
 
 
5 hours later…
2:13 PM
The reading works, but I'm not sure how to write to the device yet.. To write I have a different Characteristic UUID than the read, so I set the value of this characteristic to the value I want to send, and then I guess I need to use BluetoothGatt.writeCharacteristic() to send that characteristic to the remote device? Then check the status with the callback and send new data?
 
yes, similarly to the read, you first have to get the BluetoothCharacteristic object and change in it the value to the new value. You can change the write type (write with response or write without response) with "BluetoothCharacteristic #setWriteType(...)".
And at the end you call BluetoothGatt.writeCharacteristic(changedCharacteristic)
 
I think it worked! The peripheral contains a .csv that should be deleted after a certain amount of frames is sent
And it seems to be deleted, hurray!
For the write, the charasteristicNotification shouldn't have to be set, right?
 
 
2 hours later…
4:41 PM
no, notifications are intended for e.g. a temperature sensor, in order that the central (your android device) gets a notification with the new temperature as soon as the temperature has changed. This is great to save read requests which you would issue repeatedly...
 
5:07 PM
Ah I see. Could I ask one more question? It is possible in BLE to pair (bond) devices, right? The app you linked can't manage to bond with my peripheral, could it be that it does not support it?
 
5:46 PM
I'm sorry, but I've never worked with bonding/pairing. That's used for encrypted connections, right? I did a fast search and came up with this: stackoverflow.com/questions/22078527/…
Idk if that's of any use for you, in general it should be possible (at least iOS supports it)
 
Well t doesn't need to be encrypted necessarily - I just don't see an easy way to connect to the peripheral without having to scan the area
 

« first day  last day (15 days later) »