microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Dan Halbert
ed49c02feb
add timeout; finish up for PR
2021-02-17 23:24:11 -05:00
Dan Halbert
a397af9bdf
Round BLE timing values; fix timeout check
2021-01-10 13:16:19 -05:00
Dan Halbert
a11ad25727
BLE fixes
2020-12-23 16:39:27 -05:00
Scott Shawcroft
9fcf96cb64
Replace _bleio.ConnectionError with the native version
...
Replace uses of _bleio.ConnectionError with regular ConnectionError
Fixes #3008
2020-10-07 17:11:32 -07:00
Jeff Epler
e5122b1acf
_bleio: fix markup typo
2020-09-13 11:56:34 -05:00
Dan Halbert
4e3cb55ce7
share more of _bleio dict; fix one doc error
2020-09-01 12:41:58 -04:00
Dan Halbert
f5a5fc4c84
Fix stub; mismatched triple quotes
2020-08-30 14:59:03 -04:00
Dan Halbert
6dbd369272
merge from upstream
2020-08-30 14:39:03 -04:00
Dan Halbert
b27d511251
address review; use constructor for HCI Adapter
2020-08-30 14:06:48 -04:00
Dan Halbert
770c204d5a
sphinx fixes
2020-08-21 17:03:45 -04:00
Scott Shawcroft
644d2ba7a2
Add more "extern" declarations for gcc10 compat
...
gcc has tightened the restrictions on forward declarations that lack
"extern". Fix them up.
2020-08-21 14:39:37 -05:00
Dan Halbert
8d785cbbe5
fix stubs; make translate
2020-08-21 11:37:15 -04:00
Dan Halbert
0e30dd8bcc
merge from upstream; working; includes debug_out code for debugging via Saleae for posterity
2020-08-20 20:29:57 -04:00
Dan Halbert
1c8e11b2cb
bug in char get_value; raise NotImpl; better arg validation
2020-08-14 23:38:58 -04:00
Yihui Xiong
52990a332d
fix
2020-08-14 17:48:15 +08:00
Yihui Xiong
e7da652711
able to change ble mac address
2020-08-13 16:54:29 +08:00
Dan Halbert
06f3b4048a
fix #3228 for nrf; still needs to be fixed for HCI; tested
2020-08-11 16:21:16 -04:00
Dan Halbert
0f4b969d62
discovery of Nordic UART service working
2020-08-08 00:29:37 -04:00
Taku Fukada
56c898da80
Modify some Python stubs
2020-08-07 01:01:28 +09:00
Dan Halbert
0a60aee3e4
wip: compiles
2020-08-02 11:36:38 -04:00
Taku Fukada
d356581651
Fix several type hints
2020-07-27 18:05:13 +09:00
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
Scott Shawcroft
049921fec8
Merge branch 'main' into memmonitor
2020-07-22 14:00:28 -07:00
Scott Shawcroft
eb24653d3f
Fix BluetoothError doc typo we copied
2020-07-21 18:30:29 -07:00
Dan Halbert
6494bbdc64
snapshot
2020-07-16 23:14:49 -04:00
Dan Halbert
b08b0264cc
back to working; check for extended advertising support
2020-07-15 09:46:13 -04:00
Dan Halbert
f6869c69c5
wip: advertising; not tested
2020-07-12 19:45:23 -04:00
Dan Halbert
f03045b97e
address working; improved pkt dump
2020-07-08 23:15:48 -04:00
Dan Halbert
a5ab2829eb
use zephyr include files; wip: compiles
2020-07-08 09:33:41 -04:00
dherrada
d0d949cd24
Made every init return None
2020-07-03 14:23:34 -04:00
dherrada
3df03a5650
Made most of the requested changes
2020-07-03 13:49:00 -04:00
dherrada
9b4ffc0571
Changed unions to ReadableBuffer and WriteableBuffer
2020-07-02 17:47:52 -04:00
dherrada
26f1fd0071
Added type hints to _bleio
2020-07-02 14:11:25 -04:00
Dan Halbert
11cb3e3b4b
hci skeleton done; not working yet
2020-06-30 23:19:40 -04:00
Dan Halbert
f879114c43
do HCI pin init in Python, not here
2020-06-26 19:27:05 -04:00
Dan Halbert
1bc2e979eb
wip; compiles; much commented out
2020-06-26 17:23:20 -04:00
Dan Halbert
759929c24a
hci early wip; refactor supervisor bluetooth.c for nrf: tested
2020-06-25 20:57:17 -04:00
Jeff Epler
32a29ffdff
shared-bindings: Change docstrings with '\x...' chars to raw strings
...
Closes : #3032
2020-06-14 13:05:08 -05:00
Sean Cross
34f91f01c6
bleio: adapter: add advertising timeout and status
...
Add a field to allow specifying a timeout when initiating advertising.
As part of this, add a new property to determine if the device is still
advertising.
Additionally, have the `anonymous` property require a timeout, and set
the timeout to the maximum possible value if no timeout is specified.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 15:01:19 +08:00
Sean Cross
cfe65742a3
_bleio: support anonymous advertising
...
Add a new parameter to the `start_advertising()` function to enable
anonymous advertising. This forces a call to `sd_ble_gap_privacy_set()`
with `privacy_mode` set to `BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY` and
`private_addr_type` set to
`BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE`.
With this, addresses will cycle at a predefined rate (currently once
every 15 minutes).
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-19 15:01:18 +08:00
Scott Shawcroft
4e8de3c554
Swap sphinx to autoapi and the inline stubs
2020-05-12 17:28:24 -07:00
dherrada
c534a872a2
Merge branch 'master' into master
2020-05-12 12:26:02 -04:00
Dan Halbert
e1366d78b1
trivial change to force rebuild
2020-05-04 23:05:47 -04:00
Dan Halbert
b7836aeac6
address review comments
2020-05-04 19:51:08 -04:00
Dan Halbert
d6c6f9f4f0
add PacketBuffer .incoming_ and .outgoing_packet_length
2020-05-04 15:59:45 -04:00
dherrada
0e465e63b9
Did audiopwmio, bitbangio, and _bleio
2020-05-01 18:23:27 -04:00
Dan Halbert
46298ddcb4
PacketBuffer doc fixes
2020-04-30 00:36:01 -04:00
Dan Halbert
f3078511a6
further cleanup and bug fixing
2020-04-29 23:18:08 -04:00
Dan Halbert
3d62f87e29
back to '.packet_size' for compatiblity
2020-04-29 22:10:56 -04:00