how to correctly use QModbusTCPClient
General and Desktop
2
Posts
2
Posters
210
Views
1
Watching
-
Hi,
I am trying to get GPS data via Modbus Server. There is no problem getting the data, because I tried with Modbus Master and it worked fine.
I am struggling with incorporating this into my code however. In my code I also run a opcua server to get data from the vehicle which this device is going to be installed.
I have this setup now, by my app keeps crashing (I think due to stackoverflow).
The code is a bit intertwined with mqtt code because I want to send the data with mqtt aswell later.
this is the application ouput I get when the app crashes:
08:51:45: Starting /home/qt-apps/applications/myQtApplication on ecomatDisplay... QML debugging is enabled. Only use this in a safe environment. qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland. 08:51:45: /home/qt-apps/applications/myQtApplication on ecomatDisplay exited with code 255
Anybody that can help?
-
-
https://doc.qt.io/qt-6/linux-requirements.html
Looks like you're missing on some of the packages from your linux distro.