(void)onEsptouchResultAddedWithResult:(ESPTouchResult )result {
NSString bssid = result.bssid;
NSString ip = [ESP_NetUtil descriptionInetAddr4ByData:result.ipAddrData];
NSDictionary resultDictionary = @{@"bssid": bssid, @"ip": ip};
// TODO(smaho): Verify is main queue would not be better. Or is it the main queue?
dispatch_async(dispatch_get_current_queue(), ^{
_eventSink(resultDictionary);
});
}
"dispatch_get_current_queue" is deprecated and will be removed in a future release.
"dispatch_get_current_queue" is deprecated and will be removed in a future release.