added stream checks
This commit is contained in:
@@ -18,12 +18,12 @@ REQUIRES_PW = True
|
||||
# HOST = "129.13.51.102" # Audimax SMP 351
|
||||
# HOST = "129.13.51.106" # Tulla SMP 351
|
||||
HOST = "172.22.246.207" # Test SMP MZ
|
||||
HOST = "129.13.51.109" # Hertz
|
||||
# HOST = "129.13.51.109" # Hertz
|
||||
|
||||
USER = "admin"
|
||||
PW = "123mzsmp"
|
||||
# PW = "audimaxsmp"
|
||||
PW = "smphertz"
|
||||
# PW = "smphertz"
|
||||
|
||||
|
||||
class SMP35x(TelnetAdapter, RecorderAdapter):
|
||||
@@ -359,7 +359,7 @@ class SMP35x(TelnetAdapter, RecorderAdapter):
|
||||
self.tn.write("{}{}NI\n".format(self.esc_char, input_num))
|
||||
return TelnetAdapter._get_response_str(self.tn.read_until_non_empty_line())
|
||||
|
||||
def get_input_selction_per_channel(self):
|
||||
def get_input_selection_per_channel(self):
|
||||
self.tn.write("32I\n")
|
||||
return TelnetAdapter._get_response_str(self.tn.read_until_non_empty_line())
|
||||
|
||||
@@ -795,6 +795,9 @@ def main():
|
||||
print(smp)
|
||||
print(smp.get_recording_status())
|
||||
print(smp.is_recording())
|
||||
print(smp.get_input_presets())
|
||||
print(smp.get_input_selection_per_channel())
|
||||
print(smp.get_recording_status_text())
|
||||
|
||||
exit()
|
||||
smp._login()
|
||||
|
||||
Reference in New Issue
Block a user