I'm trying to connect a Pc without internet with a Ethernet Cable to my Raspberry and want to send informations from the Computer to the Raspberry via MQTT. I searched trough the internet but everything I found didn't fit to my Question.
I guess the connection between the PC and the Pi via Ethernet is set up because I can ping the IP-Address from the other device.
I have to use MQTT because the program on the PC can only send over MQTT. I want to send a JSON String through the mqtt.fx program. There I have to define a broker to which the JSON string should be sent to. I tried to type in the IP from the ethernet Cable from the PI but that didn't work, because the PI dont have the Broker Server I guess. Do you know a way to set up a local Broker to the Pi? If it is to difficult to sent a JSON String it also can be just a HELLO WORLD so I understand the concept of MQTT.
So my Question is: Is it possible to set up a local MQTT-Broker on the Pi/PC so the PC can publish Information and the PI can recieve them via subscribe over ethernet?