Commit Graph
1687 Commits
Author SHA1 Message Date
Ian McEwen 93fbc78492 Properly handle missing nodes in traceroute response (fixes #612) 2024-06-30 10:04:54 -07:00
Ian McEwen e331bea4ea make typing a little more 3.8-approved 2024-06-30 09:58:32 -07:00
Ian McEwen 7788271278 Merge pull request #582 from FedericoCeratto/clarify-licensing
Clarify licensing
2024-06-30 09:45:41 -07:00
Ian McEwen 01674b9803 Merge pull request #619 from geeksville/pr-poelock
Add bin/git-resolve-poetry-lock.sh to resolve merge conficts
2024-06-30 09:33:51 -07:00
Ian McEwen 4f1ea5b7da Merge pull request #616 from meshtastic/ble-logging
Adds support for ble logging characteristic
2024-06-30 09:33:05 -07:00
Ian McEwen 18883b977b Merge pull request #618 from geeksville/pr-fixstdout
make specifying an argument to --seriallog optional
2024-06-30 09:31:41 -07:00
Kevin Hester a68a9f8517 Add bin/git-resolve-poetry-lock.sh to resolve merge conficts
Previously I was just doing poetry update to resolve such conflicts,
but that's not really ideal because it updates all libs.
poetry lock --no-update is better, but even better to base the changes
from their version of poetry-lock and then add only my changes as required
by pyproject.yaml.

You can use this script if you get a merge conflict with poetry.lock
and it will just do the right thing.

btw: in my powermon/structuredlogging branch I have a commit to add
support for the "poe" tool which will provide a shortcut for this script.
2024-06-30 07:25:11 -07:00
Kevin Hester a04b3498b3 make specifying an argument to --seriallog optional
thanks @ianmcorvidae for telling me about the cool nargs='?' option!
2024-06-30 06:54:29 -07:00
Kevin Hester 5c2851db85 nargs='?' is awesome! get rid of ble_dest. 2024-06-30 06:46:39 -07:00
Kevin Hester 7e440693a3 Merge remote-tracking branch 'root/master' into ble-logging
# Conflicts:
#	poetry.lock
2024-06-30 06:36:11 -07:00
Ian McEwen 18c2d08bf0 protobufs: v2.3.13 2024-06-29 17:36:22 -07:00
Ian McEwen a3afc2ae0a Ensure regen-protobufs works if there's no pre-existing directory to remove 2024-06-29 17:34:02 -07:00
Ian McEwen f6d1b4bc39 Merge pull request #613 from geeksville/pr-moveproto
Move protobuf python glue from meshtastic to meshtastic.protobuf
2024-06-29 17:12: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 dc50a60b01 BLE debugging 2024-06-29 09:35:42 -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
Federico Ceratto 5b55e3b877 Fix typo 2024-06-27 19:35:43 +02:00
Federico Ceratto 960e32fa4b Clarify licensing in compliance with https://reuse.software/
The license was changed on 1 Nov 2022 in
https://github.com/meshtastic/python/pull/392
2024-06-27 19:30:52 +02:00
Kevin Hester 62ce8eaa77 fix code coverage CI false alarm? 2024-06-26 13:52:54 -07:00
Kevin Hester 3e8a807868 Update all libs to latest (in particular the mypy-protobuf tool) 2024-06-26 10:17:37 -07:00
Kevin Hester 6d846c3a63 manually rebuild the protobuf glue files for now... (see PR for info) 2024-06-26 10:12:24 -07:00
Kevin Hester 88b73611f0 Move protobufs to meshtastic.protobuf python namespace 2024-06-26 10:05:59 -07:00
Ian McEwen f5febc566f comment out windows build for next release, we've been deleting it out of the releases anyway 2024-06-25 19:13:23 -07:00
github-actions c3dcafb5ef bump version 2024-06-26 02:08:30 +00:00
Ian McEwen 96afa703ba output version number in correct format for github actions, hopefully 2.3.12 2024-06-25 19:07:35 -07:00
Kevin Hester 0b9af0dcba remove old protobufs (moving to meshtastic.protobuf) 2024-06-25 19:05:46 -07:00
Ian McEwen 1b14b1ef20 Use poetry version --short for a valid tag name 2024-06-25 18:58:27 -07:00
Ian McEwen 68836b1af1 Merge pull request #606 from geeksville/pr-poetry
Change build to use poetry
2024-06-25 18:24:27 -07:00
Ian McEwen 195f0c9d90 drop timeago dep, concurrent PR 2024-06-25 18:24:04 -07:00
Ian McEwen 1ff7334385 Merge branch 'master' into pr-poetry 2024-06-25 18:22:02 -07:00
Ian McEwen b15e27c7b6 Merge pull request #587 from FedericoCeratto/drop-timeago 2024-06-25 18:14:27 -07:00
Ian McEwen 267923fdc5 Add hypothesis fuzzing test for _timeago 2024-06-25 18:14:07 -07:00
Ian McEwen 9ab1b32bdb make pylint happy with a docstring 2024-06-25 18:09:20 -07:00
Ian McEwen 3a4795d3b8 Merge pull request #605 from geeksville/pr-whitelist
Add a whitelist of known meshtastic USB VIDs to use a default serial …
2024-06-25 12:53:39 -07:00
Ian McEwen c2a2d5a77c Merge pull request #611 from geeksville/pr-fixbitrot
fix bitrot in an old sanity test - use correct namespace
2024-06-25 12:52:21 -07:00
Kevin Hester b30cde979c fix bitrot in an old sanity test - use correct namespace 2024-06-25 11:31:02 -07:00
Kevin Hester 8456f36c6b add NordicSemi Power Profiler Kit 2 device to the USB blacklist 2024-06-23 17:18:04 -07: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
Kevin Hester e6a88e055f fix #610: bump nanopb to 0.4.8
Including in the Poetry changes because it touches the same lines
and I want to avoid hand merging ;-)
2024-06-23 08:26:20 -07:00
Kevin Hester 7bea6f6120 For poetry change: need to put venv in our path so mypy protobuf plugin works 2024-06-22 23:25:42 -07:00
Kevin Hester 725de4c2f9 move mypy and type info into dev-time only dependencies thx @njh 2024-06-22 16:43:56 -07:00