horrible-knots
2de7c30a27
Plumb timeout from --timeout through MeshInterface
...
Fix C0301: Line too long
Ignore the pylint for 6 positional arguments
2025-10-13 17:35:30 -04:00
shukari
db1891b651
Added Logging Handler Names
2025-08-06 18:21:32 +02:00
Ian McEwen
9281c4a335
Correctly call self.close() in disconnected_callback for bleak ( fixes #770 )
2025-06-09 11:52:23 -07:00
Ian McEwen
622a435465
Add __repr__ methods to interface types and Node, for nicer printing/logging
2025-05-08 21:23:00 -07:00
Ian McEwen
384063db19
Fix some remaining mypy complaints
2024-10-29 06:47:16 -07:00
Ian McEwen
20d75d9023
Merge branch 'master' into wls_add_types2
2024-10-29 06:19:16 -07:00
Ian McEwen
a64a9d203a
Send the meshtastic.connection.lost message from BLEInterface's close method
2024-10-16 12:13:30 -07:00
William Stearns
e335f12a3b
attempts to fix mypy issues
2024-10-11 00:59:02 -04:00
William Stearns
0da405168f
pylint cleanups
2024-10-10 23:49:20 -04:00
William Stearns
58d9039a04
another missing import
2024-10-10 16:49:06 -04:00
William Stearns
aba381fb54
Merge branch 'master' into wls_add_types
2024-10-08 23:28:25 -04:00
William Stearns
60de9dddb1
Remove references to BLEClient breaking CI checks
2024-07-09 19:54:01 -04:00
Kevin Hester
9297732806
fix possible race with thread shutdown. somehow receiveThread can be null
2024-07-07 15:17:09 -07:00
Kevin Hester
72e0f2a92b
Don't silently ingnore malformed protobufs (the \0 in the device side
...
was at fault)
2024-07-07 13:47:02 -07:00
Kevin Hester
fb191092fb
gracefully shutdown when BLE device connect fails
2024-07-06 16:27:20 -07:00
Kevin Hester
2f5a736e1f
Merge remote-tracking branch 'root/master' into pr-powermon
...
# Conflicts:
# meshtastic/ble_interface.py
# meshtastic/protobuf/mesh_pb2.py
# meshtastic/protobuf/powermon_pb2.py
# meshtastic/protobuf/powermon_pb2.pyi
2024-07-03 09:22:45 -07:00
Ian McEwen
32b4575262
Reorganize imports for pylint
2024-07-02 09:43:49 -07:00
Ben Meadors
5eafc2c866
Remove newline handling
2024-07-02 07:30:27 -05:00
Ben Meadors
19363967f3
Shut up linter
2024-07-01 21:11:35 -05:00
Ben Meadors
ce6c096c3e
Fix
2024-07-01 21:05:27 -05:00
Ben Meadors
bef9b480f0
Log Recod logging with new characterstic
2024-07-01 18:05:15 -05:00
Ben Meadors
d5a4d86c21
Merge remote-tracking branch 'origin/master' into protobuf-ble-logging
2024-07-01 06:18:32 -05:00
Ben Meadors
188f9d593c
Add handler for new log-record BLE characteristic
2024-07-01 06:16:49 -05:00
Ian McEwen
3b4690e932
appease the linter
2024-07-01 00:00:59 -07:00
Ian McEwen
49bd9cb515
Support --ble on older firmwares that don't have the log-radio characteristic yet.
2024-06-30 23:40:11 -07:00
Kevin Hester
6da04f7a15
Merge branch 'pr-bletweak' into pr-powermon
...
# Conflicts:
# .vscode/launch.json
2024-06-30 13:03:33 -07:00
Kevin Hester
111d61ea0a
bleak reads can hang if a device walks out of range, cope with that.
2024-06-30 13:00:12 -07:00
Ian McEwen
e331bea4ea
make typing a little more 3.8-approved
2024-06-30 09:58:32 -07:00
Kevin Hester
1da687cf2d
move @thebentern spiffy logging so it is shared with !ble log sources
2024-06-29 16:15:32 -07:00
Kevin Hester
9004f1ed57
fixes for type checker
2024-06-29 15:18:22 -07:00
Kevin Hester
bd767af485
A better way to ensure BLE disconnects:
...
It turns out that Bleak is kinda racey. If we call disconnect()
and then immediately close() the disconnect may or may not actually happen
(probably because it was merely queued for dbus).
So instead: When we want to close the BLEInterface we call disconnect()
and then in a preregistered 'on disconnect' handler we actually close
down our interface/datastructures.
2024-06-29 15:08:50 -07:00
Kevin Hester
6194e41baf
fix linter warnings
2024-06-29 14:37:50 -07:00
Kevin Hester
532ca54ba4
fix bug: we were never calling BLE.disconnect() which...
...
on linux breaks all but the first connection attempts.
Also remove unneeded event stuff and arbitrary timeouts, better just to
use thread.join()
2024-06-29 14:25:01 -07:00
Kevin Hester
898018ebf3
yay Bleak works again on Linux!
2024-06-29 13:52:46 -07:00
Kevin Hester
9f015f499a
wow Bleak now seems pretty buggy to me (compared to 2 yrs ago)
2024-06-29 10:18:37 -07:00
Kevin Hester
a24384cbe2
Merge remote-tracking branch 'root/ble-logging' into pr-fixbluetooth
2024-06-29 09:31:28 -07:00
Kevin Hester
adbfb328b2
threads should aways be named (for debugability)
2024-06-29 09:29:29 -07:00
Kevin Hester
6df89f54a7
fix BLE scan with latest Bleak
2024-06-29 09:10:20 -07:00
Ben Meadors
897adfb8c2
Adds support for ble logging characteristic
2024-06-29 09:41:06 -05:00
Kevin Hester
81266e756b
fixes to make Bleak (BLE) work better
2024-06-23 13:52:32 -07:00
Kevin Hester
62f16d34d4
fix BLE scan and connect to work with latest bleak
2024-06-23 11:56:44 -07:00
William Stearns
a29ee840f2
Adding mypy typing
2024-06-15 23:22:43 -04:00
Ian McEwen
e6d61c6603
Allow a faster nodedb-less startup on 2.3.11+ with --no-nodes and the magic value from meshtastic/firmware#3949
2024-06-05 18:52:35 -07:00
Ian McEwen
1ebea53703
make pylint happy with import order
2024-05-11 22:28:50 -07:00
Ian McEwen
ba2d6c9d93
continue progressively typing things (SerialInterface/BLEInterface initializations)
2024-05-11 22:27:31 -07:00
Ian McEwen
9b5943192d
Make pylint happy with ble_interface.py
2024-03-19 13:18:15 -07:00
Wolfgang Nagele
4ebb928400
Make BLE connections a bit more resilient
2024-03-13 14:08:32 +01:00
Wolfgang Nagele
0a8a193081
BLE Support
2024-01-15 21:33:53 +01:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Mike Kinney
0f89baa36e
fix the pylint unused-argument warnings
2022-01-12 14:41:49 -08:00