PlaceOS::Driver::TransportSSH
Inherits PlaceOS::Driver::Transport < Reference < Object
Constructors
new(queue : PlaceOS::Driver::Queue, ip : String, port : Int32, settings : PlaceOS::Driver::Settings, uri : Nil | String = nil, &received : Bytes, PlaceOS::Driver::Task | Nil -> Nil)
timeouts in seconds
Instance methods
connect(connect_timeout : Int32 = 10) : Nil
Sourcedisconnect
Sourceenable_multicast_loop(state = true)
exec(message) : SSH2::Channel
Sourcehttp(method, path, body : HTTP::Client::BodyType = nil, params : Hash(String, String | Nil) | URI::Params = URI::Params.new, headers : Hash(String, String) | HTTP::Headers = HTTP::Headers.new, secure = false, concurrent = true) : HTTP::Client::Response
keepalive(period)
Sourcereceived
Sourcesend(message) : TransportSSH
Sourcesend(message, task : PlaceOS::Driver::Task, &block : Bytes, PlaceOS::Driver::Task -> Nil) : TransportSSH
Sourceterminate
Source