30 #include "Notification.h"
35 #include "platform/Log.h"
105 typedef std::map<uint8_t, zwNode *> zwNodeMap_t;
132 std::string userConfigDir=
"",
133 std::string cmdLine=
"");
193 bool init(std::string devicePath,
bool isHID=
false);
265 void setValueHelp(
int nodeId,
int index, std::string text);
347 void setValueAsBytes(
int nodeId,
int index, uint8_t *val, uint8_t len);
532 bool getValueID(
int nodeId,
int index, OpenZWave::ValueID *vid);
553 std::string m_devicePath;
557 static void notificationHandler(OpenZWave::Notification
562 zwNodeMap_t m_zwNodeMap;
565 pthread_mutex_t m_nodeLock;
569 pthread_mutex_t m_initLock;
570 pthread_cond_t m_initCond;
void optionAddBool(std::string name, bool val)
Definition: ozw.cxx:123
uint8_t getValueAsByte(int nodeId, int index)
Definition: ozw.cxx:757
void setValueAsInt32(int nodeId, int index, int32_t val)
Definition: ozw.cxx:537
void optionsCreate(std::string configPath="/etc/openzwave", std::string userConfigDir="", std::string cmdLine="")
Definition: ozw.cxx:111
bool getValueID(int nodeId, int index, OpenZWave::ValueID *vid)
Definition: ozw.cxx:332
void setValueAsBytes(int nodeId, int index, uint8_t *val, uint8_t len)
Definition: ozw.cxx:585
int getValueMin(int nodeId, int index)
Definition: ozw.cxx:646
OZW()
Definition: ozw.cxx:42
bool getValueAsBool(int nodeId, int index)
Definition: ozw.cxx:730
void setDebug(bool enable)
Definition: ozw.cxx:901
bool isValueSet(int nodeId, int index)
Definition: ozw.cxx:702
void setValueAsBool(int nodeId, int index, bool val)
Definition: ozw.cxx:465
bool init(std::string devicePath, bool isHID=false)
Definition: ozw.cxx:140
bool isValuePolled(int nodeId, int index)
Definition: ozw.cxx:716
bool isNodeFrequentListeningDevice(int nodeId)
Definition: ozw.cxx:877
std::string getValueAsString(int nodeId, int index)
Definition: ozw.cxx:367
void setValueAsInt16(int nodeId, int index, int16_t val)
Definition: ozw.cxx:561
void unlockNodes()
Definition: ozw.h:544
~OZW()
Definition: ozw.cxx:76
float getValueAsFloat(int nodeId, int index)
Definition: ozw.cxx:784
bool isNodeAwake(int nodeId)
Definition: ozw.cxx:889
void setValueHelp(int nodeId, int index, std::string text)
Definition: ozw.cxx:453
void setValueAsFloat(int nodeId, int index, float val)
Definition: ozw.cxx:513
void setValueUnits(int nodeId, int index, std::string text)
Definition: ozw.cxx:399
bool isNodeListeningDevice(int nodeId)
Definition: ozw.cxx:865
void optionsLock()
Definition: ozw.cxx:133
int getValueAsInt16(int nodeId, int index)
Definition: ozw.cxx:838
std::string getValueHelp(int nodeId, int index)
Definition: ozw.cxx:438
void optionAddString(std::string name, std::string val, bool append)
Definition: ozw.cxx:128
int getValueAsInt32(int nodeId, int index)
Definition: ozw.cxx:811
bool isValueReadOnly(int nodeId, int index)
Definition: ozw.cxx:674
void setValueAsString(int nodeId, int index, std::string val)
Definition: ozw.cxx:609
void setValueLabel(int nodeId, int index, std::string text)
Definition: ozw.cxx:426
void refreshValue(int nodeId, int index)
Definition: ozw.cxx:634
std::string getValueLabel(int nodeId, int index)
Definition: ozw.cxx:411
void lockNodes()
Definition: ozw.h:540
int getValueMax(int nodeId, int index)
Definition: ozw.cxx:660
std::string getValueUnits(int nodeId, int index)
Definition: ozw.cxx:384
void optionAddInt(std::string name, int val)
Definition: ozw.cxx:118
void dumpNodes(bool all=false)
Definition: ozw.cxx:311
void setValueAsByte(int nodeId, int index, uint8_t val)
Definition: ozw.cxx:489
bool isValueWriteOnly(int nodeId, int index)
Definition: ozw.cxx:688