print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"445nm","intensity":textboxValue,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/445nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/445nm")
client.publish("microscope/light_sheet_microscope/UI/laser/445nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"445nm","intensity":textboxValue,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -394,10 +394,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"488nm","intensity":textboxValue2,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/488nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/488nm")
client.publish("microscope/light_sheet_microscope/UI/laser/488nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"488nm","intensity":textboxValue2,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -424,10 +424,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"488nm","intensity":textboxValue2,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/488nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/488nm")
client.publish("microscope/light_sheet_microscope/UI/laser/488nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"488nm","intensity":textboxValue2,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -457,9 +457,9 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/515nm")
client.publish("microscope/light_sheet_microscope/UI/515nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"515nm","intensity":textboxValue3,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -487,10 +487,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"515nm","intensity":textboxValue3,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/515nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/515nm")
client.publish("microscope/light_sheet_microscope/UI/laser/515nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"515nm","intensity":textboxValue3,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -519,10 +519,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"561nm","intensity":textboxValue4,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/561nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/561nm")
client.publish("microscope/light_sheet_microscope/UI/laser/561nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"561nm","intensity":textboxValue4,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -549,10 +549,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"561nm","intensity":textboxValue4,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/561nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/561nm")
client.publish("microscope/light_sheet_microscope/UI/laser/561nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"561nm","intensity":textboxValue4,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -581,10 +581,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"594nm","intensity":textboxValue5,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/594nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/594nm")
client.publish("microscope/light_sheet_microscope/UI/laser/594nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"594nm","intensity":textboxValue5,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -611,10 +611,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"594nm","intensity":textboxValue5,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/594nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/594nm")
client.publish("microscope/light_sheet_microscope/UI/laser/594nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"594nm","intensity":textboxValue5,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -643,10 +643,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"638nm","intensity":textboxValue6,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/638nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/638nm")
client.publish("microscope/light_sheet_microscope/UI/laser/638nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"638nm","intensity":textboxValue6,"cmd":"set intensity of laser"}},indent=2))
time.sleep(1)
client.loop_stop()
...
...
@@ -673,10 +673,10 @@ class Ui_Laser(object):
client.loop_start()
print("Connected to broker")
time.sleep(1)
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser")
client.publish("microscope/light_sheet_microscope/UI/laser",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"638nm","intensity":textboxValue6,"cmd":"set intensity of laser"}},indent=2))
print("Subscribing to topic","microscope/light_sheet_microscope/UI/laser/638nm")
print("Publishing message to topic","microscope/light_sheet_microscope/UI/laser/638nm")
client.publish("microscope/light_sheet_microscope/UI/laser/638nm",json.dumps({"type":"device","payload":{"name":"laser","wavelength":"638nm","intensity":textboxValue6,"cmd":"set intensity of laser"}},indent=2))