Announcement

Collapse
No announcement yet.

Run bulkUpload from a button click

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run bulkUpload from a button click

    I would like to launch bulkUpload.py from a snapConnect GUI but only have one bridge node. The bulkUpload can't connect because the GUI has control of the bridge. Do I need a separate bridge or is there a way to do this programmatically?

  • #2
    What you need to do is close the serial port on the GUI before you start the uploader.

    Put this on your button click:

    def btn(self, event):
    self.snap.close_serial(BRIDGE_NODE['type'],BRIDGE_NODE['port'])
    os.system('start myBulkUpload.py -m myMac.txt -s myScript.spy')

    Comment

    Working...
    X