Trouble enabling MQTT

Using V1.3.41, after connecting to the local wifi network, when I use CLI:

meshtastic --set mqtt.enabled true

meshtastic --set mqtt_server 192.168.0.140

I get:

Connected to radio
LocalConfig and LocalModuleConfig do not have attribute mqtt_server

Is there something else I need to do?

Commands are here MQTT Module Configuration | Meshtastic

you want meshtastic --set mqtt.address XXX

Thanks, but that still doesn’t work:

meshtastic --set mqtt.enabled true --set mqtt.address 192.168.0.140 --set mqtt_encryption_enabled false --ch-index 0 --ch-set uplink_enabled true

Connected to radio
Set mqtt.enabled to true
Set mqtt.address to 192.168.0.140
LocalConfig and LocalModuleConfig do not have attribute mqtt_encryption_enabled.
Set uplink_enabled to true
Writing modified channels to device

Just an additional comment: looks like “–set mqtt_encryption_enabled false” is the problem since if I just do;

meshtastic --set mqtt.enabled true --set mqtt.address 192.168.0.140 --ch-index 0 --ch-set uplink_enabled true

gives:

Connected to radio
Set mqtt.enabled to true
Set mqtt.address to 192.168.0.140
Writing modified preferences to device
Set uplink_enabled to true
Writing modified channels to device

Now, need to check whether the MQTT messages are in fact being sent out…

Answering my own questions here…
It looks like there is an inconsistency in the documentation: the encryption command should be:

meshtastic --set mqtt.encryption_enabled false

and not:

–set mqtt_encryption_enabled false