For those of us with iOS instead of Android: is there a simple HowTo, explaining how to configure channels and URLs, including setting new cryptographic keys, channels names, channel options such as “Very long range (but slower)” etc. using Python?
(Essentially everything that one can do with the Android app, but using Python.)
It’s probably all implemented, but I cannot find any documentation on how to start.
Thanks, but there is, for example, no option for “Very long range (but slower)” in that meshtastic Python script.
Also, at least to my understanding, the URL depends on all these channel parameters, doesn’t it? Is the URL updated when I change a channel parameter? What’s the format of that URL, or how do I construct my own URL?
I’ll try to help. The URL is constructed automatically based off of the current channel settings. So if you want to customize a channel you could do something like:
meshtastic --setchan name mychan --setchan channel_num 4 --info
This will change some channel params and then show device info (which will include the current channel URL)
I’ll try to update the docs tonight to add some more examples
ok thanks for asking this, because while trying to make an example of setting the psk from the python command line I found a bug. I’ve just released 1.1.33 of the python tool to fix this. I’ve also updated the docs to include an example of setting the PSK. Also if setting PSK to a custom value be very careful to make sure it has 0, 128 or 256 bits (no encryption, aes128, aes256). Because the device code currently requires that.
btw - the reason for my warning about being careful to use the right # of bytes for the psk is a bug in the device code. Which will be fixed in the next release:
By the way, if you want to ease settings keys, why not use a standard cryptographic routine such as PBKDF2. The following code computes a 256 bit key out of password “SuperSecret” and salt “salt”.