Still dont have my devices in-hand to test, but did some poking around as I’ll need to know this as well.
It seems a new parameter “channelIndex” was added to sendText on September 16th:
Using information gleaned here and adapted:
Create a file called test.py with the following.
import meshtastic
interface = meshtastic.SerialInterface()
interface.sendText(“hello secure channel”, channelIndex=1)
interface.close()
Run the file
python3 test.py
That assumes primary channel index is 0 and secondary channel index is 1
Let me know if that seems to work!
‘Not sure if there’s a single line, non-scripted way of doing this, ie. meshtastic --sendtext “hello secure channel” channelIndex=1’