if(nid!=0xFF)// not a default network. There's a problem with the selected connectionID, so try to find a valid one
if(nid!=0xFF)
{
// not a default network. There's a problem with the selected connectionID, so try to find a valid one
nlwarning("HNETL5: Can't find selected connection id %hu to send message to %s because connection is not valid or connected, find a valid connection id",(uint16)connectionId,_IdCnx[sid.get()].ServiceName.c_str());
nlwarning("HNETL5: Can't find selected connection id %hu to send message to %s because connection is not valid or connected, find a valid connection id",(uint16)connectionId,_IdCnx[sid.get()].ServiceName.c_str());
_IdCnx[sid.get()].NetworkConnectionAssociations[nid]=connectionId;// we set the preferred networkConnectionAssociation
_IdCnx[sid.get()].NetworkConnectionAssociations[nid]=connectionId;// we set the preferred networkConnectionAssociation
}else{
}
if(nid==0xFF){
else
{
if(nid==0xFF)
{
_IdCnx[sid.get()].DefaultNetwork=connectionId;
_IdCnx[sid.get()].DefaultNetwork=connectionId;
}
}
}
}
nlwarning("HNETL5: selected connection id %hu from network %hu to send message to %s",(uint16)connectionId,(uint16)nid,_IdCnx[sid.get()].ServiceName.c_str());
nlwarning("HNETL5: selected connection id %hu from network %hu to send message to %s",(uint16)connectionId,(uint16)nid,_IdCnx[sid.get()].ServiceName.c_str());