Commit 1fdc3954 authored by Claes Sjofors's avatar Claes Sjofors

Opc provider: Zero subscribe handle taken care of

parent d386eb29
...@@ -962,13 +962,15 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in ...@@ -962,13 +962,15 @@ void opc_provider::subAssociateBuffer( co_procom *pcom, void **buff, int oix, in
opcprv_sub sub; opcprv_sub sub;
server_state->RequestCnt++; server_state->RequestCnt++;
sub.handle = *subscribe_response.ServerSubHandle; if ( subscribe_response.ServerSubHandle) {
sub.oix = oix; sub.handle = *subscribe_response.ServerSubHandle;
m_sublist[sid.rix] = sub; sub.oix = oix;
m_sublist[sid.rix] = sub;
if ( subscribe_response.RItemList && subscribe_response.RItemList->Items.size()) {
for ( int i = 0; i < (int)subscribe_response.RItemList->Items.size(); i++) { if ( subscribe_response.RItemList && subscribe_response.RItemList->Items.size()) {
// subscribe_response.RItemList->Items[i]->ItemValue... for ( int i = 0; i < (int)subscribe_response.RItemList->Items.size(); i++) {
// subscribe_response.RItemList->Items[i]->ItemValue...
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment