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
Felix Moessbauer
1abb9fb213
refactor getPref to use uniform printing logic
...
We add a local helper function to print a single setting. This is a
preparation to correctly print non-trivial types. The existing code
in getPref is ported over to use that function. By that, the output
of "wholeField" is changed slightly to always print the full path for
each setting (e.g. "security.serialEnabled" instead of
"security:\nserialEnabled"). This improves support for grepping on the
output.
2024-10-25 17:11:06 +02:00
Felix Moessbauer
7fcbbe9b80
refactor camel and snake naming in getPref
...
We have a lot of code duplication by checkin over and over again if
field should be named in camel or snake notation. We simplify this by
writing the choosen variant into a variable and just use that name
across the code.
No functional change.
2024-10-25 14:13:50 +02:00
Ian McEwen
92a3986a8f
Improve comments for pdoc
2024-10-21 16:39:47 -07:00
github-actions
f08ec1885b
bump version to 2.5.3
2.5.3
2024-10-18 17:02:53 +00:00
Ian McEwen
feca49faed
Merge pull request #696 from fmoessbauer/master
...
fix base64 encoding of key field in config
2024-10-18 09:57:13 -07:00
Felix Moessbauer
dfaf1a275d
fix base64 encoding of key field in config
...
The security.privateKey and security.publicKey fields are of type bytes,
but the protobuf MessageToDict converts them to base64 encoded strings.
When importing the config again, this is read as a string, which breaks
the import. Instead, the value needs to be prefixed with "base64:", so
the type handling logic on import kicks in and decodes the value to a
bytes array again.
Fixes : #678
2024-10-18 16:13:25 +02:00
Ian McEwen
da7fa31805
tweak documentation formatting
2024-10-16 20:52:10 -07:00
Ian McEwen
12fd29b203
Merge pull request #694 from ianmcorvidae/configure-fixed-position
...
Use dedicated fixed position admin message for --configure
2024-10-16 16:01:06 -07:00
Ian McEwen
a43dd201ba
Merge pull request #695 from ianmcorvidae/ble-disconnect
...
Send the meshtastic.connection.lost message from BLEInterface's close method
2024-10-16 16:00:49 -07:00
Ian McEwen
a64a9d203a
Send the meshtastic.connection.lost message from BLEInterface's close method
2024-10-16 12:13:30 -07:00
Ian McEwen
10136962d7
Use dedicated fixed position admin message for --configure
2024-10-15 07:28:55 -07:00
Ian McEwen
3afb294f9b
Merge pull request #691 from logikal/telemetry_output
...
autoprint other types of telemetry when returned from --request-telemetry
2024-10-14 17:11:00 -07:00
Sean Kilgore
ee405fec41
autoprint other types of telemetry when returned from --request-telemetry
2024-10-14 16:58:52 -07:00
Ian McEwen
3eabaf91d0
Merge pull request #687 from ianmcorvidae/telemetry-types
...
Support requesting different telemetry types
2024-10-13 21:50:04 -07:00
Ian McEwen
78b92cecc9
fix type check
2024-10-13 20:40:22 -07:00
Ian McEwen
7088b90514
Support requesting different telemetry types
2024-10-13 20:35:11 -07:00
Ian McEwen
2ae81f8602
Merge pull request #686 from jose1711/typofix
...
Fix typo.
2024-10-13 18:00:16 -07:00
Jose Riha
923f5e82d0
Fix typo.
2024-10-14 02:48:41 +02:00
Ian McEwen
05731128fa
missed a spot
2024-10-12 12:52:36 -07:00
Ian McEwen
0523d4c94f
disable R0917 pylint failures
2024-10-12 12:49:14 -07:00
Ian McEwen
90e901de79
Upgrade bleak and therefore also the supported python versions
2024-10-12 12:32:43 -07:00
Ian McEwen
6606851135
Merge pull request #685 from ianmcorvidae/more-telemetry
...
Add other telemetry variants to automatic handling/adding to node information
2024-10-12 11:59:45 -07:00
Ian McEwen
33fecbd74d
Add other telemetry variants to automatic handling/adding to node information
2024-10-12 11:56:55 -07:00
Ian McEwen
6b9db7abd9
2.5.3 setup
2024-10-12 09:33:28 -07:00
github-actions
ece6286d82
bump version to 2.5.2
2.5.2
2024-10-12 16:31:48 +00:00
Ian McEwen
0bb4b31b6a
Merge pull request #679 from ianmcorvidae/argument-groups
...
Add a number of argument groups to organize the help output
2024-10-03 19:45:13 -07:00
Ian McEwen
915066e0af
add metavars for a bunch of arguments for nicer docs
2024-10-03 19:45:03 -07:00
Ian McEwen
6be3969577
Add a number of argument groups to organize the help output
2024-10-01 18:10:14 -07:00
Ian McEwen
b73cc1f499
Make it so wantconfig isn't a 1 in 4294967296 lottery for getting no nodes
2024-10-01 14:00:06 -07:00
Ian McEwen
65305af184
protobufs/alpha version: 2.5.2
2024-09-29 14:34:53 -07:00
github-actions
3fb1e67357
bump version to 2.5.1
2.5.1
2024-09-29 21:30:36 +00:00
Ian McEwen
cbd3c119fe
Fix pylint errors
2024-09-28 20:15:08 -07:00
Ian McEwen
bbd6d6a541
Change order of logging and parsing fromRadioBytes, and add a bit more traceback logging at that point
2024-09-28 20:11:52 -07:00
Ian McEwen
6e1217c7ca
Merge pull request #677 from ianmcorvidae/pkiencrypted_admin
...
Default to pkiEncrypted always on for admin messages
2024-09-28 18:40:31 -07:00
Ian McEwen
81db38956b
Silence pylint
2024-09-28 18:37:05 -07:00
Ian McEwen
27729995d2
Default to pkiEncrypted always on for admin messages
2024-09-28 11:13:04 -07:00
Ian McEwen
d875a574b6
Merge pull request #676 from ianmcorvidae/set-time
...
Add a --set-time command that set's the node time using a provided timestamp or the host system clock
2024-09-22 10:06:09 -07:00
Ian McEwen
40019a9712
Add a --set-time command that set's the node time using a provided timestamp or the host system clock.
2024-09-22 09:32:04 -07:00
Ian McEwen
de657bab24
Merge pull request #675 from djholt/feature/remote-config-position
...
Enable setting and removing fixed position via remote admin
2024-09-19 11:24:23 -07:00
DJ Holt
40353a387e
Fix tests for remote position configs
2024-09-19 03:31:01 -06:00
DJ Holt
9949d144a1
Enable setting and removing fixed position via remote admin
2024-09-19 02:39:49 -06:00
Ian McEwen
48a06c6e1e
protobufs & alpha version number: v2.5.1
2024-09-18 14:58:05 -07:00
Ian McEwen
c696d59b90
Set list-type keys differently, excluding 0-like values and resetting whole list
2024-09-17 21:52:57 -07:00
Ian McEwen
4fdbcb9679
Fix test_fuzz_fromStr for floats
2024-09-17 21:10:57 -07:00
Ian McEwen
5d6dfb877b
Merge pull request #673 from djholt/feature/tcp-port
...
Allow port number to be specified with tcp hostname
2024-09-17 21:08:03 -07:00
Ian McEwen
951edfe27b
Merge pull request #665 from lysol/remote-admin-retry
...
Retry admin channel setting retrieval and add configurable timeout
2024-09-17 21:06:38 -07:00
DJ Holt
5cc9627e21
Refactor default port number to variable
2024-09-16 23:41:44 -06:00
DJ Holt
bf904c6906
Allow port number to be specified with tcp hostname
2024-09-16 23:24:03 -06:00
Derek Arnold
2026212a00
please pylint with a docstring and newline
2024-09-15 16:27:40 -05:00