forked from hbldh/bleak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backends:bgapi: add characteristics read/write/notify
Added a few user friendly helpers to auto switch to write/write_without_response where appropriate, rather than simply failing. The BGAPI would simply send the other style as requested, and the remote device would simply ignore it. For "start_notify", the "force_indicate" kwarg has been used, to support both notify and indicate, as in the WinRT backend, see also hbldh#526 for more information Signed-off-by: Karl Palsson <karlp@etactica.com>
- Loading branch information
Showing
2 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
""" | ||
Backend targetting Silicon Labs devices running "NCP" firmware, using the BGAPI via pyBGAPI | ||
See: https://pypi.org/project/pybgapi/ | ||
""" |
This file contains 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