notify method
Implementation
Future notify() async {
if (_socket != null) {
final 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');
final bytes = utf8.encode(buff.toString());
_socket!.send(bytes, _v4Multicast, 1900);
}
}