23.12.2020, 10:33
This works great. But now client want delay in between the telegrams. Could it work to put a os.sleep function between.
Function i want is. Main telegram goes out. Then he want that second group adress gets the value and sends it with a delay og 3 seconds and then the last one with a delay of 10 sec after the main group sends its telegram.
Could this work?
value = event.getvalue()
grp.write('1/1/2', value)
os.sleep(3)
grp.write('1/1/3', value)
os.sleep(10)
Function i want is. Main telegram goes out. Then he want that second group adress gets the value and sends it with a delay og 3 seconds and then the last one with a delay of 10 sec after the main group sends its telegram.
Could this work?
value = event.getvalue()
grp.write('1/1/2', value)
os.sleep(3)
grp.write('1/1/3', value)
os.sleep(10)