mirror of https://github.com/nymea/nymea.git
Update MAC address database
parent
4fe03a10ea
commit
e64c7959e4
|
|
@ -111,7 +111,7 @@ for vendorInfo in sortedVendorHash:
|
||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
||||||
# Insert all oui with reference to company name
|
# Insert all oui with reference to company name
|
||||||
print('Writing OUI into database with company name refference...')
|
print('Writing OUI into database with company name reference...')
|
||||||
# Sort by oui for good binary search in the db
|
# Sort by oui for good binary search in the db
|
||||||
sortedOuiHash = sorted(vendorInfoHash.items(), key=lambda x: x[0], reverse=False)
|
sortedOuiHash = sorted(vendorInfoHash.items(), key=lambda x: x[0], reverse=False)
|
||||||
ouiCount = 0
|
ouiCount = 0
|
||||||
|
|
@ -124,4 +124,4 @@ for vendorInfo in sortedOuiHash:
|
||||||
|
|
||||||
connection.commit()
|
connection.commit()
|
||||||
connection.close()
|
connection.close()
|
||||||
print('Finished successfully. Loaded', ouiCount, 'OUI values from', vendorCount, 'manufacturers into', databaseFileName)
|
print('Finished successfully. Loaded', ouiCount, 'OUI values from', vendorCount, 'manufacturers into', databaseFileName)
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue