I have been on holidays abroad and just came back. Obviously there are no news about Rebble iOS, since I haven’t done anything during my holidays.
I just started working in a new job so I will have less time now. This doesn’t mean I’m abandoning the project though, so I’ll keep updating here and in the Discord channel whenever there’s something to see.
I have not much to show today. First of all I have changed the icon for the app to this one: (a bit of margin on the top and I changed background color to the proper one).
I haven’t figure out a way to know when the user has pressed in the “pair” button yet. For now I store the UUID of the device when I trigger the pairing action, asuming the user will say yes. Later on when starting the app I can try to search for connected devices with that UUID. If there are none I can start scanning again.
I also have implemented the GATT Server. I haven’t known what it really was until today, and I still don’t know exactly how it works. But the idea is that the Pebble connects to the phone and send some commands (like ACK). I asume this is done to keep the connection alive but I can’t say it for sure yet. It still doesn’t work as expected since I don’t see any device connection to that GATT Server.
And that’s all for today. Not much but there’s still a lot of things I don’t really know about. I expend most of the time digging in the GadgetBridge code (again, thank you very much guys for sharing this) and trying to make sense of all of this while coding it in iOS.
What’s next? Investigating why nothing connects to that GATT server.
Today I have focused in Pairing devices.When you tap in a device of the scanned devices list you’ll navigate to a new view and connect to the device. Once connected, you can disconnect from it and go back to the scanned devices list or pair your pebble.
For now I haven’t implemented saving the device once pairing and I scan only for non-paired ones. That will be for the next coding day. I also added an app icon, so it looks a bit better on my phone. I’ll do videos from now on and post them on my channel in youtube, so you can see the progress too 🙂
This is today’s video: a demo of the pairing functionality: