Skip to content

Instantly share code, notes, and snippets.

@TakehikoShimojima
Created June 23, 2018 02:22
Show Gist options
  • Select an option

  • Save TakehikoShimojima/52b7a3c74ee6725583bbd6333c44c6b3 to your computer and use it in GitHub Desktop.

Select an option

Save TakehikoShimojima/52b7a3c74ee6725583bbd6333c44c6b3 to your computer and use it in GitHub Desktop.
def run(self):
while True:
self.connect(self.dev) # デバイスにコネクトする
latestDataRow = self.getCharacteristics(uuid=_OMRON_UUID(0x3001))[0]
dataRow = latestDataRow.read()
send2ambient(self.am, dataRow)
time.sleep(300.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment