For my project, I intend to use SPP over BLE using the Bluez stack. I however find no sample code for Bluez for BLE SPP profile. Can someone help with a sample application for BLE SPP for Bluez? Preferably BLE SPP server.
Regards
For my project, I intend to use SPP over BLE using the Bluez stack. I however find no sample code for Bluez for BLE SPP profile. Can someone help with a sample application for BLE SPP for Bluez? Preferably BLE SPP server.
Regards
Unfortunately BlueZ does not have any BLE SPP example. BLE SPP is not part of the adopted BLE profiles and therefore you'll not easily find an example for this by any vendor/stack.
You can look into implementing your own BLE SPP customer service/characteristic, but for that you have to work on both the central and peripheral side which will end up being very complex. I recommend checking if you can achieve what you want with the existing BLE profiles.
If you just simply want a bidirectional communication between two BLE devices, you can simply set up a GATT server in BlueZ with characteristics that you can read/write to or be notified by. You'd need to understand the theoretical aspect of the BLE GATT profile and also how to implement these in BlueZ. I recommend the following links to get you started:-
I hope this helps.