sprintf(buf, "M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: %d\r\nST: urn:schemas-upnp-org:device:MediaServer:1\r\nUSER-AGENT: %s UPnP/1.1 %s\r\n\r\n", seconds,os, product);
This time, I'm able to successfully identify the the servers but unable to browse the content. The issue is with the search criteria. I've updated the search as follows to get the DMS devices as well as to browse the content.
Calling the same multiple times with different m-search string resulted in browsing the device content. Attached the code snippet.
Can you please let me know if there is anything that we need to do in order to get a consistent search result when we search for all DLNA enabled devices in the network without missing any devices?
Thanks
Sudheer