Open biell opened 4 years ago
I've been playing with an FSM implementation of bluetooth, just for fun on this branch.
I figured I could better understand it if I could see it. There's an animated screenshot on the branch readme.
just for fun
Just for fun, or for serious? It looks like you replaced every spot I added debugging code to better see what was going on. Your code also looks pretty good to me. If you are serious about getting this working, I can install and test it out on my OW+, then help you work through it.
This code probably needed to be revisited anyway. If you are serious, what is your status on how mature the code is right now?
@biell The code is still unfinished and I'm plugging away at it a few hours a week - it has a lot of extras at the moment (like text-to-speech announce comms state). It connects to a pint OK but no-longer holds the connection for very long (it was staying connected for 20 minutes in ideal conditions). I need to check if it should still work with the OW+ - I didn't intentionally break it, but I want to check the flow. I'll get back to you.
p.s. The battery cell is hard-coded to pint - it has a good chance of crash.
OK, in that case I will let you keep working on your new features and I will see about patching the current code base to reconnect better.
@biell sounds good. Looks like I've not migrated the OW+ code yet.
I feel like the app is disconnecting a lot (or more importantly not reconnecting properly). This might have been my fault, changing from using the sharedPreference. I will look through the changes and see if I can get the reconnects working better. Any ideas are welcomed.