FIGURE 3-9. The WeMo Switch app
To locate the Switch, the app broadcasts the following SSDP request:
M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1900
ST:upnp:rootdevice
MX:2
MAN:"ssdp:discover"
The Switch then responds with the following payload:
HTTP/1.1 200 OK
CACHE-CONTROL: max-age=86400
DATE: Mon, 14 Oct 2013 10:48:31 GMT
SOME THINGS NEVER CHANGE: THE WEMO SWITCH 79