slightly modified smp adapter for testing

This commit is contained in:
2019-11-14 14:23:19 +01:00
parent e19ce060d8
commit b214d161bf

View File

@@ -15,10 +15,12 @@ REQUIRES_PW = True
# HOST = "129.13.51.102" # Audimax SMP 351 # HOST = "129.13.51.102" # Audimax SMP 351
# HOST = "129.13.51.106" # Tulla SMP 351 # HOST = "129.13.51.106" # Tulla SMP 351
HOST = "172.22.246.207" # Test SMP MZ HOST = "172.22.246.207" # Test SMP MZ
HOST = "129.13.51.109" # Hertz
USER = "admin" USER = "admin"
PW = "123mzsmp" PW = "123mzsmp"
#PW = "audimaxsmp" #PW = "audimaxsmp"
PW = "smphertz"
class SMP(TelnetAdapter, RecorderAdapter): class SMP(TelnetAdapter, RecorderAdapter):
@@ -784,8 +786,12 @@ class SMP(TelnetAdapter, RecorderAdapter):
def main(): def main():
smp = SMP(HOST, PW, False) smp = SMP(HOST, PW, True)
print(smp) print(smp)
print(smp.get_recording_status())
exit()
smp._login() smp._login()
print(smp.get_version(verbose_info=False)) print(smp.get_version(verbose_info=False))
print(smp.get_file_transfer_config()) print(smp.get_file_transfer_config())