Hi everyone,
I have a processing sketch that gather some data every frames. Then I would need to send those data to a blueduino (basically an arduino with an integrated BLE module) that can then use them to light some LEDs.
The problem I have is that I can’t manage to find a way to send the data to the blueduino. At first I just tried to pair my device with command lines (which was actually quite hard to do…) and then used the serial communication example to send the data: it is not working.
I tried many things to pair the device and sadly, I can’t even remember what I tried since sometimes I was blindly following some tutorials without quite understanding them… I just remember some keywords like gatttool, bluez, bluetoothctl, systemctl, hciconfig, uart… But it is all a bit messy in my head on what they are, how they interract together, if some are not compatible with others…
Now what I’m trying to do is to pair my device inside the processing sketch. But for that I guess I would need a library. I found this one: https://github.com/nicolocarpignoli/jgatttool/blob/master/Example/main/GatewayMain.java. I successfully paired the device with gatttool using command lines that’s why I chose this one. But now I have no idea how to use it inside a processing sketch. And maybe it is not the way to go at all.
So if someone can put me on the right track I would be so, so happy