1 #ifndef __ZIGBEEMANAGER_IDL__
2 #define __ZIGBEEMANAGER_IDL__
5 #include <ZigbeeDevice.idl>
13 constant
int ERR_DEVICE_EXISTS = 1;
14 constant
int ERR_MAX_DEVICE_REACHED = 2;
15 constant
int ERR_DEVICE_NOT_FOUND = 3;
16 constant
int ERR_INVALID_PARAMS = 4;
17 constant
int ERR_INVALID_KEY = 5;
18 constant
int ERR_INVALID_CHANNEL = 6;
48 valueobject DeviceEvent extends
idl.Event {
53 valueobject DeviceAddedEvent extends DeviceEvent {};
56 valueobject DeviceRemovedEvent extends DeviceEvent {};
59 valueobject SettingsChangedEvent extends
idl.Event {
65 valueobject StateChangedEvent extends
idl.Event {
Zigbee Manager.
Definition: ZigbeeManager.idl:10
vector< ZigbeeDevice > getRegisteredDevices()
Get the list of registered devices.
DongleState newState
the new state
Definition: ZigbeeManager.idl:67
Settings newSettings
the new settings
Definition: ZigbeeManager.idl:61
int removeDevice(in int sourceId)
Remove a device.
vector< int > addDevices(in vector< DeviceRegistration > sensors)
Add new devices.
DongleState
States for the dongle.
Definition: ZigbeeManager.idl:21
@ INIT_IN_PROGRESS
dongle init in progress
Definition: ZigbeeManager.idl:25
@ FW_UPGRADE
firmware upgrade
Definition: ZigbeeManager.idl:26
@ NOT_INIT
no dongle
Definition: ZigbeeManager.idl:22
@ READY
default state if no action in progress
Definition: ZigbeeManager.idl:23
@ ERROR
something wrong
Definition: ZigbeeManager.idl:24
DongleState getDongleState()
Retrieve Dongle State.
int setSettings(in Settings settings)
Set Dongle Settings.
Settings getSettings()
Retrieve Dongle Settings.
MetaData getMetaData()
Retrieve Dongle MetaData.
Basic IDL definitions.
Definition: Event.idl:10
Sensors Model.
Definition: AccumulatingNumericSensor.idl:13
Zigbee.
Definition: ZigbeeDevice.idl:7
Device Registration.
Definition: ZigbeeManager.idl:41
int sourceId
the source id to add
Definition: ZigbeeManager.idl:42
int slot
the preferred slot. 0xFFFF for auto manage
Definition: ZigbeeManager.idl:44
string key
the OOB key (including CRC16)
Definition: ZigbeeManager.idl:43
Definition: ZigbeeManager.idl:36
int channel
channel between 11 and 26 or 0xFF for auto search
Definition: ZigbeeManager.idl:37