MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetPollIntensity

Method GetPollIntensity

cpp/src/Manager.cpp:804–823  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Change the intensity with which this value is polled -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

802// Change the intensity with which this value is polled
803//-----------------------------------------------------------------------------
804uint8 Manager::GetPollIntensity
805(
806 ValueID const &_valueId
807)
808{
809 uint8 intensity = 0;
810 if( Driver* driver = GetDriver( _valueId.GetHomeId() ) )
811 {
812 LockGuard LG(driver->m_nodeMutex);
813 if( Value* value = driver->GetValue( _valueId ) )
814 {
815 intensity = value->GetPollIntensity();
816 value->Release();
817 } else {
818 OZW_ERROR(OZWException::OZWEXCEPTION_INVALID_VALUEID, "Invalid ValueID passed to GetPollIntensity");
819 }
820 }
821
822 return intensity;
823}
824
825//-----------------------------------------------------------------------------
826// Retrieving Node information

Callers 3

EnablePollMethod · 0.80
isPolledMethod · 0.80
PollThreadProcMethod · 0.80

Calls 2

GetValueMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected