Доработка. Освобождение uart-портов для реализации внешнего управления
This commit is contained in:
@@ -23,6 +23,16 @@ class Serial extends SerialPort:
|
||||
start_monitoring(timeout)
|
||||
return rc
|
||||
|
||||
func try_close():
|
||||
if not is_open():
|
||||
return Error.FAILED
|
||||
stop_monitoring()
|
||||
close()
|
||||
var connections = data_received.get_connections()
|
||||
for conn in connections:
|
||||
data_received.disconnect(conn.callable)
|
||||
return Error.OK
|
||||
|
||||
|
||||
class Socket extends PacketPeerUDP:
|
||||
func send_to(addr, data):
|
||||
|
||||
Reference in New Issue
Block a user