MQTT action problems

in doc:
publish(String brokerName, String topic, String message): Publish the message to topic using specified MQTT broker.

in my rules:
publish("mosquitto","/lightSwOFF","OFF")

errors:
Error during the execution of rule ‘L11’: The name publish(<XStringLiteralImpl >,<XStringLiteralImpl>,<XStringLiteralImpl>) cannot be resolved to an item or type.

Do you have the MQTT action jar file installed? Note that MQTT Persistence, the MQTT Binding, and the MQTT action are three separate jar files.

2 Likes

Thanks, I did not realise that :slight_smile:

Thank you!!!
I installed mqtt action and mqtt persistence
it work!

Do you mind closing this post by selecting the solution, please?