Expand description
Host-side client for the ir-bt-bridge USB configuration/control protocol.
let device = irbt::Device::open(None)?; // auto-detect the bridge
device.set_mapping(0x00FF_02FD, irbt::HidKey::Home)?;
for mapping in device.keymap()? {
println!("0x{:08X} -> {}", mapping.ir, mapping.key);
}Re-exports§
pub use irbt_proto as proto;
Structs§
- Battery
- Build
Info - How the firmware was built. A free-form component list, so new entries need no protocol change.
- Component
- Device
- A connection to one bridge.
- Device
Info - Log
- Mapping
- Status
Enums§
- Error
- Event
- Unsolicited device → host notifications.
- HidKey
- Keys the bridge can send to Google TV.
- LogLevel
- Notification
- Something the device sent without being asked.
Constants§
- DEFAULT_
TIMEOUT - How long to wait for a response to a single request.
- PROTOCOL_
VERSION - Bumped on any change that alters the encoding of existing messages.
- USB_PID
- USB_VID
- Espressif’s USB VID and the PID of the ESP32-S3’s built-in USB-Serial-JTAG.
Functions§
- find_
ports - Serial port paths of every connected device that looks like a bridge.