touch sampledata.txt

This commit is contained in:
S Groesz 2021-04-14 23:16:57 +00:00
parent de2326749a
commit ea3df81c43
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
nfutil.Discover(s, r) result:
{b'\x00!i\x01-\xaf': {'magic': 90, 'id': 1, 'sequence': 27564, 'eth_addr': b'\x00!i\x01-\xaf', 'uptime_days': 37, 'uptime_hrs': 5, 'uptime_min': 19, 'uptime_secs': 5, 'mode': 1, 'alert': 0, 'ip_type': 0, 'ip_addr': b'\xc0\xa8\x00\xe5', 'ip_netmask': b'\xff\xff\xff\x00', 'ip_gw': b'\xc0\xa8\x00\x01', 'app_ver': b'\x01\x06\x06\x00', 'boot_ver': b'\x01\x03\x00\x00', 'hw_ver': b'\x01\x03\x00\x00', 'name': b'600\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}}
-- Dict with single item
>>> device = d[list(d)[0]]
>>> device
{'magic': 90, 'id': 1, 'sequence': 27564, 'eth_addr': b'\x00!i\x01-\xaf', 'uptime_days': 37, 'uptime_hrs': 5, 'uptime_min': 19, 'uptime_secs': 5, 'mode': 1, 'alert': 0, 'ip_type': 0, 'ip_addr': b'\xc0\xa8\x00\xe5', 'ip_netmask': b'\xff\xff\xff\x00', 'ip_gw': b'\xc0\xa8\x00\x01', 'app_ver': b'\x01\x06\x06\x00', 'boot_ver': b'\x01\x03\x00\x00', 'hw_ver': b'\x01\x03\x00\x00', 'name': b'600\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}