Upnp/c# Fail send event -
i'm trying build upnp device in c#. have implemented subscriber when try notify variable state change, message didn't listen. test subscription , event, i'm using device spy intel.
here code send notification:
try { hostname host = new hostname(hostname); streamsocket _socket = new streamsocket(); await _socket.connectasync(host, portnumber.tostring()); var html = encoding.utf8.getbytes(message); datawriter dw = new datawriter(_socket.outputstream); dw.writestring(message); await dw.storeasync(); } catch (exception ex) { }
here send packet:
notify /65088e88-1082-4ac9-98d2-111df151507d/urn:upnp-org:serviceid:acdlserviceid http/1.1 host: 10.10.50.161:58583 content-type: text/xml; charset="utf-8" content-lenght: 126 nt: upnp:event nts: upnp:propchange sid: uuid:8937a19d-bf7b-4903-8875-e5992abe975b seq: 0 <e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><led_state>acceso</led_state></e:property></e:propertyset>
what's problem? thank you
Comments
Post a Comment