Created
June 23, 2018 03:06
-
-
Save TakehikoShimojima/bdec4cc4f4b58154e069a16108bd0517 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 handleDiscovery(self, dev, isNewDev, isNewData): | |
| if isNewDev or isNewData: | |
| for (adtype, desc, value) in dev.getScanData(): | |
| if desc == 'Manufacturer' and value[0:4] == 'd502': | |
| if value[4:6] != self.lastseq: | |
| self.lastseq = value[4:6] | |
| send2ambient(value[6:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment