----------------------------------------------------------------------------- Process a response from the Z-Wave PC interface -----------------------------------------------------------------------------
| 2595 | // Process a response from the Z-Wave PC interface |
| 2596 | //----------------------------------------------------------------------------- |
| 2597 | void Driver::HandleGetControllerCapabilitiesResponse |
| 2598 | ( |
| 2599 | uint8* _data |
| 2600 | ) |
| 2601 | { |
| 2602 | m_controllerCaps = _data[2]; |
| 2603 | |
| 2604 | Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), "Received reply to FUNC_ID_ZW_GET_CONTROLLER_CAPABILITIES:" ); |
| 2605 | |
| 2606 | char str[256]; |
| 2607 | if( m_controllerCaps & ControllerCaps_SIS ) |
| 2608 | { |
| 2609 | Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), " There is a SUC ID Server (SIS) in this network." ); |
| 2610 | snprintf( str, sizeof(str), " The PC controller is an inclusion %s%s%s", |
| 2611 | ( m_controllerCaps & ControllerCaps_SUC ) ? "static update controller (SUC)" : "controller", |
| 2612 | ( m_controllerCaps & ControllerCaps_OnOtherNetwork ) ? " which is using a Home ID from another network" : "", |
| 2613 | ( m_controllerCaps & ControllerCaps_RealPrimary ) ? " and was the original primary before the SIS was added." : "." ); |
| 2614 | Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), str ); |
| 2615 | |
| 2616 | } |
| 2617 | else |
| 2618 | { |
| 2619 | Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), " There is no SUC ID Server (SIS) in this network." ); |
| 2620 | snprintf( str, sizeof(str), " The PC controller is a %s%s%s", |
| 2621 | ( m_controllerCaps & ControllerCaps_Secondary ) ? "secondary" : "primary", |
| 2622 | ( m_controllerCaps & ControllerCaps_SUC ) ? " static update controller (SUC)" : " controller", |
| 2623 | ( m_controllerCaps & ControllerCaps_OnOtherNetwork ) ? " which is using a Home ID from another network." : "." ); |
| 2624 | Log::Write( LogLevel_Info, GetNodeNumber( m_currentMsg ), str ); |
| 2625 | } |
| 2626 | } |
| 2627 | |
| 2628 | //----------------------------------------------------------------------------- |
| 2629 | // <Driver::HandleGetSerialAPICapabilitiesResponse> |