class

Quartz::RPC::Client

Inherits Reference < Object

Constructors

new(transport : Transport)
Source

Instance methods

app_button(args : String, index : Int32 = 0) : Nil
Source
app_exit
Source
app_load_file(path : String) : Nil
Source
app_lock_status
Source
app_start(name : String, args : String = "") : Nil
Source
device_info

Streams DeviceInfoResponse key/value pairs until has_next=false.

Source
get_datetime
Source
gui_send_input(key : Gui::InputKey, type : Gui::InputType) : Nil
Source
ping(payload : Bytes = Random::Secure.random_bytes(8)) : Bytes
Source
play_alert
Source
power_info

Streams PowerInfoResponse key/value pairs until has_next=false.

Source
reboot(mode : System::RebootRequest::Mode = System::RebootRequest::Mode::OS) : Nil

Fire-and-forget reboot; firmware does not reply.

Source
screen_stream

Starts a screen stream; yields each ScreenFrame until the block raises, the transport errors, or stop_screen_stream is called.

Source
screen_stream_stop
Source
set_datetime(dt : System::DateTime) : Nil
Source
storage_delete(path : String, recursive : Bool = false) : Nil
Source
storage_info(path : String) : Storage::InfoResponse
Source
storage_list(path : String, & : Storage::File -> ) : Nil

Streams files under path. Yields each File entry across chunks until has_next=false.

Source
storage_md5(path : String) : String
Source
storage_mkdir(path : String) : Nil
Source
storage_read(path : String) : Bytes

Reads a file; firmware may stream chunks via has_next. Concatenates data.

Source
storage_rename(old_path : String, new_path : String) : Nil
Source
storage_stat(path : String) : Storage::File
Source
storage_write(path : String, data : Bytes, chunk : Int32 = 512) : Nil

Writes a file to the device, chunking data into frames. All chunks except the last carry has_next=true and share one command_id.

Source