Created
October 29, 2019 12:12
-
-
Save nkenna/b1ef418c647006e831380396f166db02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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