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
"""
|
|
Sample script to detect Net2Plus modules
|
|
"""
|
|
|
|
from Net2Scripting.network.net2plus import Net2PlusFinder
|
|
|
|
|
|
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")
|