| | |
| | | replySelectedEquipmentStatusData(pMessage); |
| | | } |
| | | else if (nStream == 1 && pHeader->function == 11) { |
| | | // [EAP_MAPPING][S1F11] Status Variable namelist request -> S1F12. |
| | | // If customer requires swapping SV/DV mapping, this is one of the two switch points. |
| | | // Swap target with S1F21 branch below. |
| | | replyStatusVariableNamelistRequest(pMessage); |
| | | } |
| | | else if (nStream == 1 && pHeader->function == 21) { |
| | | // [EAP_MAPPING][S1F21] Data Variable namelist request -> S1F22. |
| | | // If customer requires swapping SV/DV mapping, this is one of the two switch points. |
| | | // Swap target with S1F11 branch above. |
| | | replyDataVariableNamelistRequest(pMessage); |
| | | } |
| | | else if (nStream == 1 && pHeader->function == 23) { |
| | |
| | | // S1F11 |
| | | int CHsmsPassive::replyStatusVariableNamelistRequest(IMessage* pRecv) |
| | | { |
| | | // [EAP_MAPPING][SV_HANDLER] |
| | | // Current behavior: handles S1F11 and replies S1F12 with SVID/SVNAME/UNITS. |
| | | // If customer requires SV/DV swap, this function body can be swapped with |
| | | // replyDataVariableNamelistRequest (or dispatch branches can be swapped instead). |
| | | if (m_pPassive == NULL || STATE::SELECTED != m_pPassive->getState()) { |
| | | return ER_NOTSELECT; |
| | | } |
| | |
| | | // S1F21/S1F22 - Data Variable Namelist |
| | | int CHsmsPassive::replyDataVariableNamelistRequest(IMessage* pRecv) |
| | | { |
| | | // [EAP_MAPPING][DV_HANDLER] |
| | | // Current behavior: handles S1F21 and replies S1F22 with DVID/DVNAME/UNITS. |
| | | // If customer requires SV/DV swap, this function body can be swapped with |
| | | // replyStatusVariableNamelistRequest (or dispatch branches can be swapped instead). |
| | | if (m_pPassive == NULL || STATE::SELECTED != m_pPassive->getState()) { |
| | | return ER_NOTSELECT; |
| | | } |