Hello Claes,
thank you for the quick help.
Everything works for my development station after I wrote a small program Ai to Av in the PLC.
I start the station with the runtime monitor. The changed values on the external MQTT broker are displayed on the station.
So far everything OK.
In the end, a Raspberry Pi 4 should take over this connection.
I built exactly the same configuration for the Raspberry Pi runtime-station.
I have installed on the development station:
apt install gcc-10-arm-linux-gnueabihf-base gcc-10-arm-linux-gnueabihf g++-10-arm-linux-gnueabihf
for cross-compiling.
I copy the libs an header-files for the cross-compiling with this commands:
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libkrb5.so* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libk5crypto.so.3* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libcom_err.so* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libkrb5support.so* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libkeyutils.so* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libgssapi_krb5* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libtirpc.* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/lib/arm-linux-gnueabihf/libmosq* /usr/arm-linux-gnueabihf/lib
sudo scp -r pi@192.168.5.175:/usr/include/tirpc /usr/arm-linux-gnueabihf/include
sudo scp pi@192.168.5.175:/usr/lib/libpigpio* /usr/arm-linux-gnueabihf/lib
sudo scp pi@192.168.5.175:/usr/include/pigpio* /usr/arm-linux-gnueabihf/include
sudo dpkg -i /home/einrichter/Downloads/proviewr/v6001/debian11/pwrrpi60_6.0.0-1_amd64.deb
sudo dpkg -i /home/einrichter/Downloads/proviewr/v6001/debian11/pwrdemo60_6.0.0-1_amd64.deb
For yout information i using the i2c-Bus with pigpio. That's the reason for the many libs.
My little function to pigpio is working.
But in the mqtt-client:
Here I still have the message %NONAME-W-NOMSG...".
I configured the Development-Station (Debian 11.5) and the Raspberry Pi runtime station according to the Installation Guide v6.0.0.
I don't get an error message that a lib is missing and I installed the line Ai to Av in the plc as in the project on the development station.
Do you have any idea what could be missing?
Where else can I look?
I can also read and write from the Raspberry Pi with mosquitto_sub and mosquitto_pub.