I am using GCDAsyncUdpSocket to discover Roku devices over the local WiFi:
NSString *const kSearch = @"M-SEARCH * HTTP/1.1\r\nHost: 239.255.255.250:1900\r\nMan: \"ssdp:discover\"\r\nST: roku:ecp\r\n";
GCDAsyncUdpSocket* clientSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
clientSocket sendData:[kSearch dataUsingEncoding:NSUTF8StringEncoding] toHost:@"239.255.255.250" port:1900 withTimeout:7.0 tag:0];
NSError* error;
[clientSocket beginReceiving:&error];
Stopped working after upgrade to iOS 14.5 (no response received). How to fix? Thanks in advance!
Topic:
App & System Services
SubTopic:
Core OS
Tags: