Could someone tell which are the steps to config MQTT with openhab to connect with an Arduino MEGA.
I have the Arduino code ok connecting to the 1883 broker to the server of the Raspberry.
Then, on the Raspberry I’ve installed MQTT, Samba to see the files on my Windows, the SSH and VNC connection, and then I have created the mqtt config file on the openhab2 config folder. But probably I have to install something more and I’ll not have to create that files, because probably I am missing some steps.
If I understood you correctly, you got your mosquitto MQTT server working on your raspberry pi and you want to know how to interact with it from openhab?
First, you should install the MQTT Binding. Go to you PaperUI -> AddOns -> Bindings.
Then read the Documentation and maybe search the Forum. There should be plenty examples how you can connect Items to the binding and how the communication between OpenHAB and the MQTT server works.
As a first impression, it should look something like this.