hid

class platypush.message.event.hid.HidBaseEvent(*args, path: str, serial_number: str, vendor_id: int, product_id: int, product_string: str, manufacturer_string: str, **kwargs)[source]

Bases: Event

Base class for HID events.

__init__(*args, path: str, serial_number: str, vendor_id: int, product_id: int, product_string: str, manufacturer_string: str, **kwargs)[source]
Params:

target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict] logging_level – Logging level that should be applied to these

events (default: INFO).

class platypush.message.event.hid.HidDeviceConnectedEvent(*args, path: str, serial_number: str, vendor_id: int, product_id: int, product_string: str, manufacturer_string: str, **kwargs)[source]

Bases: HidBaseEvent

Event triggered when a device is discovered.

class platypush.message.event.hid.HidDeviceDataEvent(*args, data: str, **kwargs)[source]

Bases: HidBaseEvent

Event triggered when a monitored device sends some data.

__init__(*args, data: str, **kwargs)[source]
Parameters:

data – Hex-encoded representation of the received data.

class platypush.message.event.hid.HidDeviceDisconnectedEvent(*args, path: str, serial_number: str, vendor_id: int, product_id: int, product_string: str, manufacturer_string: str, **kwargs)[source]

Bases: HidBaseEvent

Event triggered when a device is disconnected.