Steve Holden
067cddd354
Refactor to avoid the use of a special global object.
...
The global object formerly used is now replaced by direct use
of the namespace opf the globals module. This eliminates the
redundant getters and setters and simplifies the code for
future maintainers.
Note that the globals module name conflicts (harmlessly at
present) with a Python built-in function. A future commit
should rename it `config` to remove this clash and better
represent its intended purpose.
2024-04-10 10:03:12 +01:00
Ian McEwen
439b1ade2e
Add --remove-node ( fixes #514 )
2024-04-08 14:58:15 -07:00
Ian McEwen
278ca74a70
Show hops away when present in nodeDB ( fixes #539 )
2024-04-08 11:24:21 -07:00
Ian McEwen
7cea3cefc8
protobufs: v2.3.4
2024-04-08 10:12:50 -07:00
Ian McEwen
157f9cd276
Group and organize arguments a bit more
2024-04-07 23:20:02 -07:00
Ian McEwen
e742b5c0b8
Split out connection-related args into their own function & group
2024-04-05 15:22:26 -07:00
Ian McEwen
b57d1d81ff
Fix up pylint from merged PR
2024-04-02 15:15:22 -07:00
Ian McEwen
4c97866875
Merge pull request #511 from flavoromission/506-show-all-module-settings
...
feat:506 show all module settings
2024-04-02 13:11:35 -07:00
Ian McEwen
8bb0cdf21b
Merge pull request #528 from ianmcorvidae/protobufs-mypy
...
Protobuf type interfaces for type-checking & undoing protobufs hack
2024-04-01 10:50:24 -07:00
Ian McEwen
917d6b2214
update docs for --listen too
2024-03-30 11:06:01 -07:00
Ian McEwen
523a855238
When --listen is set, turn on debug-level logging as though --debug was, even if it wasn't explicitly provided
...
Fixes #513
2024-03-30 11:04:33 -07:00
Jorropo
5f92ac3995
in --help indicate --setalt takes meters
2024-03-30 10:36:56 +01:00
Ian McEwen
59091664db
Check against proper full name for moved protobufs
2024-03-29 18:38:26 -07:00
Ian McEwen
4baef92523
Fix assorted mypy-detected errors
2024-03-29 18:38:25 -07:00
Ian McEwen
4528cbf407
Update dependencies, regen-protobufs, protobufs, etc. to support types & mypy
2024-03-29 18:38:25 -07:00
Ian McEwen
ad8dbeab14
List unknown node IDs always with 8 hex digits, padded with 0s
2024-03-29 16:15:57 -07:00
Ian McEwen
5a277ab4bd
Guard against lack of decoded message in --reply
2024-03-29 09:23:06 -07:00
Ian McEwen
1a278db65e
protobufs: v2.3.3
2024-03-29 09:20:39 -07:00
Ian McEwen
f3f6a6327d
fixing copypaste error
2024-03-25 22:36:33 -07:00
Ian McEwen
d03c78518d
Add missing portnums to the dict for automatic decoding as protocol buffers/text
2024-03-25 19:54:53 -07:00
Ian McEwen
f4120102b3
Fix things for nanopb.proto
2024-03-25 14:03:58 -07:00
Ian McEwen
05e181dece
protobufs: v2.3.2
2024-03-25 13:17:23 -07:00
Ian McEwen
daa5587443
re-fix pylint
2024-03-23 22:17:49 -07:00
Ian McEwen
a139d180b8
Fix up or comment out broken tests, to get CI (hopefully) happy
2024-03-23 22:07:17 -07:00
Ian McEwen
09f8405422
Remove --sendping as REPLY_APP portnum is disabled in firmware now
2024-03-23 21:25:38 -07:00
Ian McEwen
85a6d4c21b
Remove stale device_metadata_pb2 whose .proto file no longer exists
2024-03-22 11:46:29 -07:00
Ben Meadors
5537778b64
2.3.1 protobufs
2024-03-20 10:27:19 -05:00
Ian McEwen
9b5943192d
Make pylint happy with ble_interface.py
2024-03-19 13:18:15 -07:00
Ian McEwen
bf56521a53
Create Tunnel.TunnelError for specialized errors in that file
2024-03-19 13:00:06 -07:00
Ian McEwen
16a1af6a13
Create MeshInterface.MeshInterfaceError to specialize errors in that file
2024-03-19 12:58:44 -07:00
Ian McEwen
b8640666d7
Fix some outstanding pylint issues (or disable the checks)
2024-03-19 12:47:08 -07:00
Ian McEwen
759cafb817
use importlib.metadata and packaging.version instead of pkg_resources
2024-03-19 12:02:40 -07:00
flavor omission
27be73c707
feat:506 show all module settings
...
Problem:
Missing fields are omitted.
Solution:
This fix sets the flag `always_print_fields_with_no_presence`
in the invocation of the protobuff method
`MessageToJson` will display the missing fields.
see: MessageToJson 6b36eb633c/python/google/protobuf/json_format.py (L82)
see: issue #506 https://github.com/meshtastic/python/issues/506
2024-03-18 00:01:47 -04:00
Ben Meadors
bd788ae303
Merge pull request #508 from ianmcorvidae/set-ch-index-on-add
...
Set --ch-index to a newly added channel when --ch-add is set, to allow further modification
2024-03-17 07:45:29 -05:00
Ian McEwen
92cc84e692
Make --ch-set with invalid options print out the available options as the documentation says it does
2024-03-16 11:58:38 -07:00
Ian McEwen
03abaf6059
Set --ch-index to a newly added channel when --ch-add is set, to allow further modification
2024-03-16 11:06:32 -07:00
Ian McEwen
9f2cc28fef
Show unknown nodes in a fashion similar to the web UI. Fixes #504
2024-03-13 21:15:00 -07:00
Wolfgang Nagele
4ebb928400
Make BLE connections a bit more resilient
2024-03-13 14:08:32 +01:00
Jonathan Bennett
4522a8a7b0
Document automatic device search
2024-03-11 18:41:20 -05:00
Jonathan Bennett
14813e5c76
Attempt TCP connection to localhost if serial detect fails
2024-03-11 18:41:20 -05:00
Ben Meadors
fbcdab37ed
Protobufs
2024-03-11 12:20:08 -05:00
Ben Meadors
67636c4ce2
Revert "Move pb2 Files to Own Folder"
2024-03-11 12:18:25 -05:00
Ben Meadors
fdf594492c
Merge pull request #496 from meshtastic/listen-command
...
Added command to listen to protobuf stream
2024-03-09 15:51:33 -06:00
Ben Meadors
a1ffb459f8
Added command to listen to protobuf stream
2024-03-08 14:16:02 -06:00
foglet15
df8ea85873
change to PbDefinitions for clearer naming
2024-02-25 14:22:15 -05:00
foglet15
10c2e753f5
fix tests imports, add sed for fixing pb2 imports
2024-02-25 14:16:31 -05:00
foglet15
b7e23ab762
use mv command instead, run regen test
2024-02-25 13:48:10 -05:00
foglet15
9a4feecea8
move pb2 to own folder, regen script writes to new folder, update imports
2024-02-25 13:11:36 -05:00
Jonathan Bennett
a067c9295e
Fixup handling for radio configs with disabled channel
2024-02-22 00:44:25 -06:00
Ben Meadors
1a9e728dee
v2.2.23 protobufs
2024-02-16 20:02:10 -06:00