mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Serial
This commit is contained in:
@@ -6,9 +6,6 @@ bool Telnet::onInit() {
|
||||
_term->enableControlCodes();
|
||||
_term->enableEcho(false);
|
||||
_term->setStream(&_client);
|
||||
|
||||
// _shell = new CommandShell(Cli::get());
|
||||
_shell->setTerm(_term);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -37,6 +34,11 @@ void Telnet::sendData(const String& data) {
|
||||
}
|
||||
}
|
||||
|
||||
void Telnet::setCommandShell(CommandShell* shell) {
|
||||
_shell = shell;
|
||||
_shell->setTerm(_term);
|
||||
}
|
||||
|
||||
void Telnet::setEventHandler(TelnetEventHandler h) { _eventHandler = h; }
|
||||
|
||||
void Telnet::onLoop() {
|
||||
|
||||
Reference in New Issue
Block a user