BLE class of PicoRuby

Singleton methods

new

BLE.new(?(String|nil)) -> instance

Instance methods

_init

instance._init(String | nil) -> void
instance.blink_led() -> void

debug_puts

instance.debug_puts(*untyped) -> nil

ensure

instance.ensure() { () -> void }-> void

gap_connect

instance.gap_connect(String, Integer) -> Integer

gap_local_bd_addr

instance.gap_local_bd_addr() -> String

get_write_value

instance.get_write_value(Integer handle) -> (String|nil)

hci_power_control

instance.hci_power_control(Integer) -> 0

heartbeat_callback

instance.heartbeat_callback() -> void

packet_callback

instance.packet_callback(String) -> void

set_read_value

instance.set_read_value(Integer handle, String value) -> void

start

instance.start(?(Integer | nil) timeout_ms, ?(Symbol | nil)) -> Integer

Attr accessors

debug (accessor)

instance.debug -> bool

role (reader)

instance.role -> :central | :peripheral | :observer | :broadcaster
Tags: class