Skip to content

Instantly share code, notes, and snippets.

@nkenna
Created October 29, 2019 12:12
Show Gist options
  • Save nkenna/b1ef418c647006e831380396f166db02 to your computer and use it in GitHub Desktop.
Save nkenna/b1ef418c647006e831380396f166db02 to your computer and use it in GitHub Desktop.
def connected(self):
print(self.address, 'connected')
p = threading.Thread(target=p_action, args=(self, 'motion detected'))
p.start()
self.send_message('HU'+str(humidity))
self.send_message('TE'+str(temperature))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment