forked from sqozz/sem6000
17 lines
476 B
Python
17 lines
476 B
Python
from sem6000 import SEMSocket
|
|
import time
|
|
socket = SEMSocket('f0:c7:7f:0d:e7:17')
|
|
|
|
socket.login("1337")
|
|
socket.changePassword("1234")
|
|
socket.login("1234")
|
|
#socket.changePassword("1337")
|
|
|
|
while True:
|
|
break;
|
|
time.sleep(1)
|
|
socket.getStatus()
|
|
socket.setStatus(True)
|
|
print("=== {} ({}) ===".format(socket.mac_address, "on" if socket.powered else "off"))
|
|
print("\t{}V {}A → {}W@{}Hz".format(socket.voltage, socket.current, socket.power, socket.frequency))
|