Ian McEwen
2a44be9269
Add a bunch more detail to --device-metadata output, from fields we weren't formerly using in the output.
2025-11-20 11:42:57 -07:00
Ian McEwen
ad04c26d13
split out constant, improve logic some, add tests for channel_hash and generate_channel_hash
2025-11-06 15:19:12 -07:00
Ian McEwen
0e67ef37aa
Return hash from channel_hash function
2025-11-06 14:55:41 -07:00
Ian McEwen
e924afd140
Merge branch 'master' into channel-hash-info
2025-11-06 14:51:32 -07:00
SpudGunMan
a17cfe9d2b
rename to generate_channel_hash
2025-11-06 12:01:53 -08:00
SpudGunMan
471e3ce145
generate_hash to util
2025-11-06 12:00:16 -08:00
SpudGunMan
39c9864682
move and rename hash function
...
this function, xor_hash, and a variable for the default key (as bytes, I think, rather than the base64 version) really all belong in meshtastic.util rather than here.
There's multiple forms of hashing in firmware so this should be named to denote that, perhaps channel_hash. If we later want to add the frequency-slot-style hash, better if it's distinguished better from the start.
2025-11-06 11:49:57 -08:00
Niklas Roslund
1d3a7d39f7
Move to_node_num to util and updated function calls
2025-11-06 19:05:34 +01:00
shukari
db1891b651
Added Logging Handler Names
2025-08-06 18:21:32 +02:00
grleblanc
04a0ff6322
fix(util): fix typo
2025-06-09 15:50:21 -04:00
grleblanc
b4764d3bc3
fix(util): update waitForTraceRoute reset logic
2025-06-09 15:05:53 -04:00
Ian McEwen
f4c085fc50
Merge pull request #714 from loic-fejoz/feature/waypoint
...
Waypoint creation/move/deletion
2024-12-27 09:46:45 -07:00
Ian McEwen
afd071c24e
Fix windows-11 detection for non-float platform.release() values ( fixes #639 )
2024-12-21 14:17:41 -07:00
Loïc Fejoz
7cc18e9df6
fix(waypoint): Missing methods
...
Add missing methods callbacks regarding waypoints.
2024-12-21 10:36:36 +01:00
Ian McEwen
4c7ac60be6
appease mypy too
2024-11-15 11:55:25 -07:00
Ian McEwen
0b086d10f8
appease pylint
2024-11-15 11:50:35 -07:00
Ian McEwen
426795fccd
semi-experimentally, add fallback code for message_to_json, allowing older protobuf library versions
2024-11-15 11:47:17 -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
Felix Moessbauer
839bbbcad2
config: correctly print byte and array types on get
...
When getting config values of type bytes or list (technically a protobuf
repeated container type), these were directly printed on the output.
However, the retrieved values could not be set by --set again, as the
format was different (e.g. python string representation of bytes vs.
base64 prefixed and encoded as expected by --set).
We fix this by adding a toStr utility function (similar to the fromStr)
function to convert byte types correctly to the base64 representation.
Further, we check if the type is repeated and apply this operation to
all values.
2024-10-25 17:11:06 +02:00
William Stearns
0da405168f
pylint cleanups
2024-10-10 23:49:20 -04:00
William Stearns
aba381fb54
Merge branch 'master' into wls_add_types
2024-10-08 23:28:25 -04:00
Derek Arnold
34f9be255e
fix unrelated bug when fromStr input is short hex
...
For example, 0x0 will generate an unhandled ValueError. This was caught
during a random unit test run for 3.9, so I figure I'd fix it.
This is unrelated to the PR otherwise.
2024-09-15 16:20:50 -05:00
Ian McEwen
865bb6a497
Remove python 3.8 warning. protobufs: v2.3.15 (brought in by merge)
2024-07-07 21:00:26 -07:00
Ian McEwen
c04943308a
Merge pull request #607 from geeksville/pr-powermon
...
PowerMon/StructuredLogging support
2024-07-07 20:56:28 -07:00
Ian McEwen
ec4e521001
Add a warning about this being the last version supporting python 3.8
2024-07-07 20:49:38 -07:00
Kevin Hester
63327986b4
fix incorrect Vid - thanks @ianmcorvidae for notixing.
...
0x04b4 is cypress semi but commonly used in Chinese oscopes (like mine).
So it was supposed to be a blacklist not a whitelist!
2024-07-03 20:11:59 -07:00
Kevin Hester
c9351236e6
blacklist hantek oscilliscope
2024-06-26 17:28:55 -07:00
Kevin Hester
f8ad4fef7c
deferred execution thread should be named and marked as daemon
2024-06-25 12:23:38 -07:00
Kevin Hester
5ff4025ed6
add NordicSemi Power Profiler Kit 2 device to the USB blacklist
2024-06-25 10:25:58 -07:00
geeksville
1add293414
Add a whitelist of known meshtastic USB VIDs to use a default serial ports.
...
Initially only RAK4631 and heltec tracker are listed
2024-06-25 10:25:58 -07:00
Kevin Hester
8456f36c6b
add NordicSemi Power Profiler Kit 2 device to the USB blacklist
2024-06-23 17:18:04 -07:00
geeksville
ccfb04720f
Add a whitelist of known meshtastic USB VIDs to use a default serial ports.
...
Initially only RAK4631 and heltec tracker are listed
2024-06-21 14:42:29 -07:00
William Stearns
a29ee840f2
Adding mypy typing
2024-06-15 23:22:43 -04:00
Ian McEwen
da0312a5b0
more miscellaneous types
2024-06-05 19:44:18 -07:00
Ian McEwen
ba2d6c9d93
continue progressively typing things (SerialInterface/BLEInterface initializations)
2024-05-11 22:27:31 -07:00
geeksville
7fe98bc266
Pretty indent --info JSON output (see below for details)
...
Changes to make --info much more human readable (while still keeping
machine readabilty for anyone foolish enough to be parsing the existing
output as text)
* change message_to_json to optionally not strip the multiline JSON
* use multiline=True for the two places we are printing to the console
* make the node list JSON indented
2024-04-26 15:15:57 -07:00
Ian McEwen
e8ba5581f6
Add a --request-position argument to request positions from nodes
2024-04-16 15:43:24 -07:00
Ian McEwen
6e7933a3ce
Fix my own pylint mistakes
2024-04-11 18:40:10 -07:00
Ian McEwen
f449ff9506
Add a variety of type annotations, primarily in mesh_interface
2024-04-11 18:28:01 -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
a139d180b8
Fix up or comment out broken tests, to get CI (hopefully) happy
2024-03-23 22:07:17 -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
GUVWAF
9858fa1976
Add request-telemetry option
2023-08-21 20:58:27 +02:00
Thomas Göttgens
97aa8a8d74
fixing a few linter errors.
2023-03-31 20:09:59 +02:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Manuel Verch
b8b268feac
Check most current meshtastic version
2023-03-31 10:08:36 +02:00