You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update_example.py 281B

  1. from pms_api import SixfabPMS, Definition
  2. import time
  3. pms = SixfabPMS()
  4. result = 2 # failed by default
  5. try:
  6. for step in pms.updateFirmware("pms-firmware.bin"):
  7. print(f"{step}%")
  8. print(f"Process ended with status code {result}")
  9. except:
  10. print("raised error")