Guest User

Untitled

a guest
Jun 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def run(self):
  2. while True:
  3. self.connect(self.dev) # デバイスにコネクトする
  4. latestDataRow = self.getCharacteristics(uuid=_OMRON_UUID(0x3001))[0]
  5. dataRow = latestDataRow.read()
  6. send2ambient(self.am, dataRow)
  7. time.sleep(300.0)
Add Comment
Please, Sign In to add comment