MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / send_serial

Function send_serial

python/inputmodule/inputmodule/__init__.py:144–150  ·  view source on GitHub ↗

Send serial command by using existing serial connection

(dev, s, command)

Source from the content-addressed store, hash-verified

142
143
144def send_serial(dev, s, command):
145 """Send serial command by using existing serial connection"""
146 try:
147 s.write(command)
148 except (IOError, OSError) as _ex:
149 disconnect_dev(dev.device)
150 # print("Error: ", ex)

Callers 2

send_colFunction · 0.90
commit_colsFunction · 0.90

Calls 1

disconnect_devFunction · 0.90

Tested by

no test coverage detected