How to publish a message of the qspinbox value when the qspinbox sets the slider with corresponding value.

4 views
Skip to first unread message

Spencer Du

unread,
Sep 27, 2019, 8:14:41 AM9/27/19
to MQTT
Hi

When the values of the spinboxes is set a message should be published from the GUI containing the value from the spinbox which then sets the qlabel with the value. After this if I close and reload the gui the widgets should be set with the values set from the previous time. When the embedded.py file closes/stops running the gui is reset to its default state when no spinbox and qlabel are set with values.

First execute the embedded.py file. Enter 'laser' when 'devices to be activated' appears. Once this executed a publish and subscribe should happen and a laser actor python file starts which launches the laser device on the embedded.py file. Once this is complete launch GUI.py in a separate command line and click add device for the device in the combo box.

Here are the files needed. 

Regards
Spencer
embedded.py
GUI.py
laser.py
laser2.py
laserEmbedded.py
mqtt.py
Reply all
Reply to author
Forward
0 new messages