notify method
Implementation
Future notify() async {
if (_socket != null) {
var buff = StringBuffer();
buff.write("NOTIFY * HTTP/1.1\r\n");
buff.write("HOST: 239.255.255.250:1900\r\n");
buff.write("CACHE-CONTROL: max-age=10");
buff.write("LOCATION: ${rootDescriptionUrl}\r\n");
buff.write("NT: ${device.deviceType}\r\n");
buff.write("NTS: ssdp:alive\r\n");
buff.write("USN: uuid:${UpnpHostUtils.generateToken()}\r\n");
var bytes = utf8.encode(buff.toString());
_socket!.send(bytes, _v4_Multicast, 1900);
}
}