platypush.message.event.serial

class platypush.message.event.serial.SerialDataEvent(data, device=None, *args, **kwargs)[source]

Event fired when a serial interface (generic USB, Arduino etc.) receives new data

__init__(data, device=None, *args, **kwargs)[source]
Parameters:
  • data (object) – Received data
  • device (str) – Source device address or name