Open
Conversation
- split plugins configuration and connection configuration - check BT config during on_config_checged() - check connection before trying to up it
- move on_ui_update() with new functions
- Add device/connextion status - Remove unecessary BT messages/status - add sleep
- Rename BTConfigError to ConfigError
- BTteher only handle reading the config, starting BTManager et ui calls - BTManager is a separate Thread handeling: - Network configuration - Kernel watchdog: reloads kernel modules - Connection up, if needed - Disconnection on exit
- refactor webhook()
- restart bluetooth during config to remove edge cases
- Add sleep between downing items
Only visible in debug mode
- Clean config loading on_config_changed()
|
have tested this and found that when the BT stack does crash this brings it back almost instantly now.. Great update! Testing with an iphone and a BT GPS serial device and a tcp GPS connection to phone. previous version would lose BT connection and stack entirely ever 30 min or so |
- Add whitelist - Add some logs - Code refactoring
… main loop) - Add ping with reload on error - Add reload on connection error - Add exception catching on main loop - Update kernel error detection - Use Dataclass - Improve logs
- Doc update - Dataclass for BTManager
- Move BTManager.running to Thread.Event
- Update template
Signed-off-by: Frédéric <fmatray@users.noreply.github.com>
Contributor
Author
|
|
This is excellent work perhaps one of the best contributions I've seen to Pwnagotchi so far. This is the quality work we need for this project. |
…config down or rmmod - Small log improvement
Merge branch 'noai' of https://github.com/fmatray/pwnagotchi into noai
|
Great work indeed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BT-tether rework to handle correctly the bluetooth connection
Description
Motivation and Context
It mainly resolve several BT connections issues
How Has This Been Tested?
Only tested with raspberry zero 2W and IPhone, during a week with several options on/off (autoconnect, dns, internet).
I forced the BT on and off to see is the connection follow on the pwnagotchi.
I waited for the kernel issue to trigger and watch if the plugin was able to reload everything correctly.
Not tested:
Types of changes
Checklist:
git commit -s