Implement a basic demonstration
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import serial
|
||||
import time
|
||||
|
||||
import logging as log
|
||||
|
||||
def write_to_serial_read_respone(port, cmd, timeout = 2):
|
||||
# Initialize serial connection
|
||||
@@ -84,10 +84,10 @@ def broadcaster_config():
|
||||
|
||||
for cmd in cmds:
|
||||
ret = write_to_serial_read_respone(serial_port, cmd, timeout=0.1)
|
||||
print("\n".join(ret))
|
||||
log.info("\n".join(ret))
|
||||
|
||||
ret = write_to_serial_read_respone(serial_port, "nac show", timeout=0.1)
|
||||
print("\n".join(ret))
|
||||
log.info("\n".join(ret))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user