smartgadget.client module

Connect to the Raspberry Pi and link with a Smart Gadget Service.

class smartgadget.client.SmartGadgetClient(service_name, **kwargs)[source]

Bases: LinkedClient

Connect to the Raspberry Pi and link with the SmartGadget Service.

Parameters
  • service_name (str) – The name of the Service to link with.

  • kwargs – Keyword arguments that are passed to connect().

disconnect()[source]

Shut down the Smart Gadget Service and the Network Manager.

service_error_handler()[source]

Shut down the Smart Gadget Service and the Network Manager if there was an error.