You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
348 B
Python
18 lines
348 B
Python
6 years ago
|
"""
|
||
|
Sample script to detect Net2Plus modules
|
||
|
"""
|
||
|
|
||
6 years ago
|
from Net2Scripting.network.net2plus import Net2PlusFinder
|
||
6 years ago
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
|
||
|
inst = Net2PlusFinder()
|
||
|
print("Please wait for the modules to respond...")
|
||
|
devs = inst.find()
|
||
|
if devs:
|
||
|
for d in devs:
|
||
|
print(d)
|
||
|
else:
|
||
|
print("No devices detected")
|