I have a raspberry Pi on the same network which has got Mosquitto MQTT running.
I am trying to write a sketch to connect to Wifi and then publish a simple message (Hello World) to the topic outTopic. It should be quite simple but no matter what I do it does not work. My Mosquitto broker is working fine as I can publish and subscribe from it from other devices.
Does anyone have a Arduino IDE sketch which would be able to do this?
Thanks