Clients

A client is used by a lifx_plugin.gateway.Gateway() to connect the Lifx bus.

class lifx_plugin.client.Client(on_con_lost, tasks, triggers, commands)
property addresses
connection_made(transport)

Called when a connection is made.

The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called.

connection_lost(exc)

Called when the connection is lost or closed.

The argument is an exception object or None (the latter meaning a regular EOF is received or the connection was aborted or closed).

error_received(exc)

Called when a send or receive operation raises an OSError.

(Other than BlockingIOError or InterruptedError.)

datagram_received(data, addr)

Called when some datagram is received.