----------------------------------------------------------------------------- Request the version of a command class used by the device -----------------------------------------------------------------------------
| 187 | // Request the version of a command class used by the device |
| 188 | //----------------------------------------------------------------------------- |
| 189 | bool Version::RequestCommandClassVersion |
| 190 | ( |
| 191 | CommandClass const* _commandClass |
| 192 | ) |
| 193 | { |
| 194 | if( m_com.GetFlagBool(COMPAT_FLAG_VERSION_GETCLASSVERSION) ) |
| 195 | { |
| 196 | if( _commandClass->HasStaticRequest( StaticRequest_Version ) ) |
| 197 | { |
| 198 | Msg* msg = new Msg( "VersionCmd_CommandClassGet", GetNodeId(), REQUEST, FUNC_ID_ZW_SEND_DATA, true, true, FUNC_ID_APPLICATION_COMMAND_HANDLER, GetCommandClassId() ); |
| 199 | msg->Append( GetNodeId() ); |
| 200 | msg->Append( 3 ); |
| 201 | msg->Append( GetCommandClassId() ); |
| 202 | msg->Append( VersionCmd_CommandClassGet ); |
| 203 | msg->Append( _commandClass->GetCommandClassId() ); |
| 204 | msg->Append( GetDriver()->GetTransmitOptions() ); |
| 205 | GetDriver()->SendMsg( msg, Driver::MsgQueue_Send ); |
| 206 | return true; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | return false; |
| 211 | } |
| 212 | |
| 213 | //----------------------------------------------------------------------------- |
| 214 | // <Version::CreateVars> |
no test coverage detected