onvif 同时发现多台设备的问题

软件ONVIF Device Manager V2.2.250不能同时发现多台onvif设备


修改wdd_ssom.c函数中的urn的值就可

soap_wsdd_mode wsdd_event_Probe(struct soap *soap, const char *MessageID, const char *ReplyTo, const char *Types, const char *Scopes, const char *MatchBy, struct wsdd__ProbeMatchesType *matches)
{


static char xAddr[128] = {0};
    printf("%s,%d\n",__FUNCTION__, __LINE__);
    printf("MessageID:%s\n", MessageID);
    printf("ReplyTo:%s\n", ReplyTo);
    printf("Types:%s\n", Types);
    printf("Scopes:%s\n", Scopes);
    printf("MatchBy:%s\n", MatchBy);


sprintf(xAddr, "http://%s:8080/onvif/device_service", gApp->hostAddress);
printf("xAddr = %s\n", xAddr);
soap_wsdd_init_ProbeMatches(soap, matches);
soap_wsdd_add_ProbeMatch(soap, matches,
"urn:uuid:464A4854-4656-5242-4530-313035394101",
"tdn:NetworkVideoTransmitter",
"onvif://www.onvif.org/type/video_encoder onvif://www.onvif.org/type/audio_encoder onvif://www.onvif.org/type/ptz onvif://www.onvif.org/type/video_analytics onvif://www.onvif.org/hardware/HD-IPCAM onvif://www.onvif.org/location/country/china onvif://www.onvif.org/name/IPCAM",
NULL,
xAddr,
    10);
    return SOAP_WSDD_MANAGED;
}

onvif 同时发现多台设备的问题_第1张图片

你可能感兴趣的:(onvif 同时发现多台设备的问题)