Skip to content

Conversation

@tynbendad
Copy link
Contributor

bt_with_wifi: allow bt tether while rig also has a wifi connection.
bt_offline: keep bt tether steady even when there is no internet

not all phones will support these, but with them our samsung galaxy s7 will stay connected to the rig regardless of wifi, so we can always use the offline flask served pages (using android firefox, not chrome, due to its offline support), with or without internet, and the rig will still use wifi (either via its own wifi or the phone's) when available, even when bt tethered.

bt_with_wifi: allow bt tether while rig also has a wifi connection.
bt_offline: keep bt tether steady even when there is no internet

not all phones will support these, but with them our samsung galaxy s7 will stay connected to the rig regardless of wifi, so we can always use the offline flask served pages, with or without internet, and the rig will still use wifi (either via its own wifi or the phone's) when available, even when bt tethered.
restore change missing in prior commit
@jaylagorio
Copy link
Contributor

At least part of this seems similar to #855, which I'm also a fan of. Or am I missing something? Is there less overlap here than I think?

@tynbendad
Copy link
Contributor Author

thanks for pointing that out - if i had any clue how to view a pull requests' code i would compare the changes there to mine... any tips?

@jaylagorio
Copy link
Contributor

Sure! The easiest way is to click the Files Changed tab on the PR itself. It'll show you each of the files changed (in this case just one) and all the additions/deletions made.

https://github.com/openaps/oref0/pull/855/files

@tynbendad
Copy link
Contributor Author

thanks, sometimes i can't see which text is clickable ;)

yes, it looks similar as far as keeping bt going under a wifi connection, but i've also made it not break the bt connection when there is no ip connection, which is helpful when completely offline.

@tynbendad
Copy link
Contributor Author

Although it says something about how badly a change like these is needed that I came up with about the same one separately. I'd rather see 855 get in and make changes from there if it would help get one if these in sooner.

@jaylagorio
Copy link
Contributor

I'm a fan of the option for a full-time BT connection regardless of which PR gets merged, but agree with you that if it takes a crawl-walk-run approach by doing #855 and then follow up changes from you it would get us where we want to go!

@scottleibrand
Copy link
Contributor

The reason something like #855 hasn’t been merged is it seems that folks with Android phones suggest lots of things that would work great with Android, but would make for a worse user experience with iOS. I think we need someone with both kinds of phones to test all the potential changes to see which are improvements across both platforms and which help on one but hurt on the other.

We might end up needing different behaviors configurable for which kind of phone you have.

@tynbendad
Copy link
Contributor Author

tynbendad commented Jun 25, 2018 via email

Copy link
Contributor

@scottleibrand scottleibrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably use the new bash functions for checking preferences.json. We’ll also need to fix the tabs vs. spaces mismatch.

@scottleibrand
Copy link
Contributor

Ok, I like preference gated non-default options for new stuff. I’ll review this in more detail after ADA.

@scottleibrand
Copy link
Contributor

Let's rebase this only 0.7.0-dev so we can use all the fancy new bash function stuff. :-)

I just created a branch to make that easier: https://github.com/openaps/oref0/compare/0.7.0-dev...1043-to-0.7.0-dev?expand=1

@tynbendad
Copy link
Contributor Author

i'm not on 0.7.0-dev yet, but have been meaning to setup a pi hat for a while. let me know if you need something from me for this & i'll try to catch up in the meantime.

@scottleibrand
Copy link
Contributor

#1048 merged: please test 0.7.0-dev to confirm that it works properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants