guh - Developer documentation

CreateMethods and SetupMethods

This page describes how the setup and creation of a device is working in a plugin. Since the device manager handles all the plugins and devices there are certain steps during the device setup which have to be considered.

The CreateMethod describes how the device will be created (by the user, by discovery or automatically). The SetupMethod describes how the device will be set up. A Device can have multiple CreateMethods, but only one SetupMethod.

CreateMethod "user" - SetupMethod "justAdd - synchronous"

This is the simplest setup what a device can have.

Once the is adding the device the DeviceManager is calling following methods in the device plugin:

CreateMethod "user" - SetupMethod "justAdd" - asynchronous

CreateMethod "auto" - SetupMethod "justAdd"

CreateMethod "discovery" - SetupMethod "justAdd"

CreateMethod "discovery" - SetupMethod "pushButton"

CreateMethod "discovery" - SetupMethod "enterPin"

CreateMethod "discovery" - SetupMethod "displayPin"