Sean, do you still want tcpdump logs? It seems that the problem is that the correct url isn't coming back in the ssdpPath, but if the correct url is hardcoded, it goes there correctly.
It seems that the question is
Why
- Code: Select all
state.devices.each { k, v ->
log.trace "discover_devices: ${v}"
def ip = convertHexToIP(v.ip)
found_devices["${v.ip}:${v.port}"] = "AlarmDecoder @ ${ip}"
}
logs this:
- Code: Select all
discover_devices: [port:1388, ssdpUSN:uuid:97487987-b220-11e7-9ba8-b5672e8fd4f7, devicetype:04, mac:B827EB6C0227, hub:54a142d6-34b8-444f-a2d5-960dc05ea1ce, ssdpPath:/static/device_description.xml, ssdpTerm:urn:schemas-upnp-org:device:AlarmDecoder:1, ip:C0A80B95]
Why is the ssdpPath the xml path instead of alarmdecoder.local or the ip? And, remember, the ssdpPath was completely empty until you made the dev branch change.
Jason