JS::BLE::UART class of PicoRuby
Singleton methods
new
JS::BLE::UART.new(
?service_uuid: String,
?tx_uuid: String,
?rx_uuid: String,
?name: String,
?name_prefix: String
) -> void
Instance methods
available
instance.available() -> Integer
available?
instance.available?() -> bool
close
instance.close() -> void
connected?
instance.connected?() -> bool
gets
instance.gets(?timeout: Integer?) -> String?
puts
instance.puts(String data) -> nil
read
instance.read(Integer nbytes, ?timeout: Integer?) -> String?
read_nonblock
instance.read_nonblock(Integer nbytes) -> String?
write
instance.write(String data) -> Integer