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

Method Init

cpp/src/command_classes/WakeUp.cpp:106–117  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Starts the process of requesting node state from a sleeping device -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

104// Starts the process of requesting node state from a sleeping device
105//-----------------------------------------------------------------------------
106void WakeUp::Init
107(
108)
109{
110 // Request the wake up interval. When we receive the response, we
111 // can send a set interval message with the same interval, but with
112 // the target node id set to that of the controller. This will ensure
113 // that the controller will receive the wake-up notifications from
114 // the device. Once this is done, we can request the rest of the node
115 // state.
116 RequestState( CommandClass::RequestFlag_Session, 1, Driver::MsgQueue_WakeUp );
117}
118
119//-----------------------------------------------------------------------------
120// <WakeUp::RequestState>

Callers 1

Calls 1

RequestStateFunction · 0.85

Tested by

no test coverage detected