121 typedef void (*pfnOnNotification_t)(
Notification const* _pNotification,
void* _context );
156 static void Destroy();
162 static std::string getVersionAsString();
168 static std::string getVersionLongAsString();
203 void WriteConfig(
uint32 const _homeId );
248 bool RemoveDriver(
string const& _controllerPath );
278 bool IsPrimaryController(
uint32 const _homeId );
287 bool IsStaticUpdateController(
uint32 const _homeId );
296 bool IsBridgeController(
uint32 const _homeId );
303 string GetLibraryVersion(
uint32 const _homeId );
324 string GetLibraryTypeName(
uint32 const _homeId );
337 void LogDriverStatistics(
uint32 const _homeId );
349 string GetControllerPath(
uint32 const _homeId );
354 void SetDriverReady(
Driver* _driver,
bool success );
357 list<Driver*> m_pendingDrivers;
358 map<uint32,Driver*> m_readyDrivers;
374 int32 GetPollInterval();
387 void SetPollInterval(
int32 _milliseconds,
bool _bIntervalBetweenPolls );
395 bool EnablePoll(
ValueID const &_valueId,
uint8 const _intensity = 1 );
402 bool DisablePoll(
ValueID const &_valueId );
409 bool isPolled(
ValueID const &_valueId );
415 void SetPollIntensity(
ValueID const &_valueId,
uint8 const _intensity );
447 bool RefreshNodeInfo(
uint32 const _homeId,
uint8 const _nodeId );
457 bool RequestNodeState(
uint32 const _homeId,
uint8 const _nodeId );
467 bool RequestNodeDynamic(
uint32 const _homeId,
uint8 const _nodeId );
475 bool IsNodeListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
484 bool IsNodeFrequentListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
492 bool IsNodeBeamingDevice(
uint32 const _homeId,
uint8 const _nodeId );
500 bool IsNodeRoutingDevice(
uint32 const _homeId,
uint8 const _nodeId );
508 bool IsNodeSecurityDevice(
uint32 const _homeId,
uint8 const _nodeId );
541 bool IsNodeZWavePlus(
uint32 const _homeId,
uint8 const _nodeId );
574 string GetNodeType(
uint32 const _homeId,
uint8 const _nodeId );
598 string GetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId );
613 string GetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId );
627 string GetNodeName(
uint32 const _homeId,
uint8 const _nodeId );
640 string GetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId );
656 string GetNodeManufacturerId(
uint32 const _homeId,
uint8 const _nodeId );
672 string GetNodeProductType(
uint32 const _homeId,
uint8 const _nodeId );
688 string GetNodeProductId(
uint32 const _homeId,
uint8 const _nodeId );
703 void SetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _manufacturerName );
718 void SetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _productName );
733 void SetNodeName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _nodeName );
747 void SetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId,
string const& _location );
759 void SetNodeOn(
uint32 const _homeId,
uint8 const _nodeId );
770 void SetNodeOff(
uint32 const _homeId,
uint8 const _nodeId );
783 void SetNodeLevel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _level );
791 bool IsNodeInfoReceived(
uint32 const _homeId,
uint8 const _nodeId );
800 bool GetNodeClassInformation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _commandClassId,
808 bool IsNodeAwake(
uint32 const _homeId,
uint8 const _nodeId );
816 bool IsNodeFailed(
uint32 const _homeId,
uint8 const _nodeId );
824 string GetNodeQueryStage(
uint32 const _homeId,
uint8 const _nodeId );
841 string GetNodeDeviceTypeString(
uint32 const _homeId,
uint8 const _nodeId );
857 string GetNodeRoleString(
uint32 const _homeId,
uint8 const _nodeId );
872 string GetNodePlusTypeString (
uint32 const _homeId,
uint8 const _nodeId );
895 string GetValueLabel(
ValueID const& _id );
905 void SetValueLabel(
ValueID const& _id,
string const& _value );
915 string GetValueUnits(
ValueID const& _id );
925 void SetValueUnits(
ValueID const& _id,
string const& _value );
935 string GetValueHelp(
ValueID const& _id );
945 void SetValueHelp(
ValueID const& _id,
string const& _value );
975 bool IsValueReadOnly(
ValueID const& _id );
985 bool IsValueWriteOnly(
ValueID const& _id );
995 bool IsValueSet(
ValueID const& _id );
1005 bool IsValuePolled(
ValueID const& _id );
1017 bool GetValueAsBool(
ValueID const& _id,
bool* o_value );
1029 bool GetValueAsByte(
ValueID const& _id,
uint8* o_value );
1041 bool GetValueAsFloat(
ValueID const& _id,
float* o_value );
1053 bool GetValueAsInt(
ValueID const& _id,
int32* o_value );
1065 bool GetValueAsShort(
ValueID const& _id,
int16* o_value );
1078 bool GetValueAsString(
ValueID const& _id,
string* o_value );
1103 bool GetValueListSelection(
ValueID const& _id,
string* o_value );
1115 bool GetValueListSelection(
ValueID const& _id,
int32* o_value );
1127 bool GetValueListItems(
ValueID const& _id, vector<string>* o_value );
1139 bool GetValueListValues(
ValueID const& _id, vector<int32>* o_value );
1151 bool GetValueFloatPrecision(
ValueID const& _id,
uint8* o_value );
1166 bool SetValue(
ValueID const& _id,
bool const _value );
1180 bool SetValue(
ValueID const& _id,
uint8 const _value );
1195 bool SetValue(
ValueID const& _id,
float const _value );
1209 bool SetValue(
ValueID const& _id,
int32 const _value );
1223 bool SetValue(
ValueID const& _id,
int16 const _value );
1251 bool SetValue(
ValueID const& _id,
string const& _value );
1266 bool SetValueListSelection(
ValueID const& _id,
string const& _selectedItem );
1277 bool RefreshValue(
ValueID const& _id);
1289 void SetChangeVerified(
ValueID const& _id,
bool _verify );
1300 bool GetChangeVerified(
ValueID const& _id );
1311 bool PressButton(
ValueID const& _id );
1322 bool ReleaseButton(
ValueID const& _id );
1371 bool SetSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes,
int8 const _setback );
1388 bool RemoveSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes );
1398 void ClearSwitchPoints(
ValueID const& _id );
1436 void SwitchAllOn(
uint32 const _homeId );
1442 void SwitchAllOff(
uint32 const _homeId );
1491 void RequestConfigParam(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _param );
1499 void RequestAllConfigParams(
uint32 const _homeId,
uint8 const _nodeId );
1565 string GetGroupLabel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx );
1579 void AddAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId,
uint8 const _instance = 0x00 );
1593 void RemoveAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId,
uint8 const _instance = 0x00 );
1615 bool AddWatcher( pfnOnNotification_t _watcher,
void* _context );
1624 bool RemoveWatcher( pfnOnNotification_t _watcher,
void* _context );
1632 pfnOnNotification_t m_callback;
1637 pfnOnNotification_t _callback,
1640 m_callback( _callback ),
1641 m_context( _context )
1647 list<Watcher*> m_watchers;
1649 Mutex* m_notificationMutex;
1665 void ResetController(
uint32 const _homeId );
1673 void SoftReset(
uint32 const _homeId );
1739 bool CancelControllerCommand(
uint32 const _homeId );
1758 void TestNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _count );
1767 void TestNetwork(
uint32 const _homeId,
uint32 const _count );
1776 void HealNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
bool _doRR );
1785 void HealNetwork(
uint32 const _homeId,
bool _doRR );
1800 bool AddNode(
uint32 const _homeId,
bool _doSecurity =
true );
1814 bool RemoveNode(
uint32 const _homeId);
1832 bool RemoveFailedNode(
uint32 const _homeId,
uint8 const _nodeId);
1848 bool HasNodeFailed(
uint32 const _homeId,
uint8 const _nodeId);
1862 bool RequestNodeNeighborUpdate(
uint32 const _homeId,
uint8 const _nodeId);
1876 bool AssignReturnRoute(
uint32 const _homeId,
uint8 const _nodeId);
1890 bool DeleteAllReturnRoutes(
uint32 const _homeId,
uint8 const _nodeId);
1901 bool SendNodeInformation(
uint32 const _homeId,
uint8 const _nodeId);
1914 bool CreateNewPrimary(
uint32 const _homeId);
1927 bool ReceiveConfiguration (
uint32 const _homeId);
1943 bool ReplaceFailedNode(
uint32 const _homeId,
uint8 const _nodeId);
1956 bool TransferPrimaryRole(
uint32 const _homeId);
1969 bool RequestNetworkUpdate(
uint32 const _homeId,
uint8 const _nodeId);
1982 bool ReplicationSend(
uint32 const _homeId,
uint8 const _nodeId);
1998 bool CreateButton(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _buttonid);
2014 bool DeleteButton(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _buttonid);
2031 uint8 GetNumScenes( );
2046 void RemoveAllScenes(
uint32 const _homeId );
2054 uint8 CreateScene();
2062 bool RemoveScene(
uint8 const _sceneId );
2072 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
bool const _value );
2082 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
uint8 const _value );
2092 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
float const _value );
2102 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
2112 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int16 const _value );
2122 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
2132 bool AddSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
2142 bool AddSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
2151 bool RemoveSceneValue(
uint8 const _sceneId,
ValueID const& _valueId );
2160 int SceneGetValues(
uint8 const _sceneId, vector<ValueID>* o_value );
2170 bool SceneGetValueAsBool(
uint8 const _sceneId,
ValueID const& _valueId,
bool* o_value );
2180 bool SceneGetValueAsByte(
uint8 const _sceneId,
ValueID const& _valueId,
uint8* o_value );
2190 bool SceneGetValueAsFloat(
uint8 const _sceneId,
ValueID const& _valueId,
float* o_value );
2200 bool SceneGetValueAsInt(
uint8 const _sceneId,
ValueID const& _valueId,
int32* o_value );
2210 bool SceneGetValueAsShort(
uint8 const _sceneId,
ValueID const& _valueId,
int16* o_value );
2220 bool SceneGetValueAsString(
uint8 const _sceneId,
ValueID const& _valueId,
string* o_value );
2230 bool SceneGetValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string* o_value );
2240 bool SceneGetValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32* o_value );
2250 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
bool const _value );
2260 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
uint8 const _value );
2270 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
float const _value );
2280 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
2290 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int16 const _value );
2300 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
2310 bool SetSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
2320 bool SetSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
2328 string GetSceneLabel(
uint8 const _sceneId );
2336 void SetSceneLabel(
uint8 const _sceneId,
string const& _value );
2344 bool SceneExists(
uint8 const _sceneId );
2352 bool ActivateScene(
uint8 const _sceneId );
2383 #endif // _Manager_H Message object to be passed to and from devices on the Z-Wave network.
Definition: Msg.h:44
Definition: Bitfield.h:34
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:43
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
unsigned short uint16
Definition: Defs.h:77
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition: Defs.h:54
The main public interface to OpenZWave.
Definition: Manager.h:109
#define DEPRECATED
Definition: Defs.h:63
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition: Defs.h:53
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:64
#define NULL
Definition: Defs.h:70
ControllerCommand
Definition: Driver.h:459
Base class for all Z-Wave command classes.
Definition: CommandClass.h:46
signed short int16
Definition: Defs.h:76
ControllerInterface
Definition: Driver.h:83
signed char int8
Definition: Defs.h:73
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:58
Manages library options read from XML files or the command line.
Definition: Options.h:66
signed int int32
Definition: Defs.h:79
unsigned int uint32
Definition: Defs.h:80
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:49
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition: Notification.h:42
Provides a unique ID for a value reported by a Z-Wave device.
Definition: ValueID.h:53
Options * GetOptions() const
Gets a pointer to the locked Options object.
Definition: Manager.h:210
Implements a platform-independent mutex–for serializing access to a shared resource.
Definition: Mutex.h:39
static Manager * Get()
Gets a pointer to the Manager object.
Definition: Manager.h:150
Base class for values associated with a node.
Definition: Value.h:47
void(* pfnControllerCallback_t)(ControllerState _state, ControllerError _err, void *_context)
Definition: Driver.h:521
unsigned char uint8
Definition: Defs.h:74