Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NEHotspotEAPSettings *settings = [[NEHotspotEAPSettings alloc]init];
- settings.password = self.password.text;
- settings.username = self.username.text;
- settings.supportedEAPTypes = [NSArray arrayWithObjects:[NSNumber numberWithInteger:NEHotspotConfigurationEAPTypeEAPPEAP], nil];
- NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc]initWithSSID:self.ssid.text eapSettings:settings];
- [[NEHotspotConfigurationManager sharedManager]applyConfiguration:configuration completionHandler:^(NSError * _Nullable error) {
- if (error) {
- NSLog(@"Error: %@",error.localizedDescription);
- } else {
- NSLog(@“Connected”);
- }
- }];
- settings.trustedServerNames
Add Comment
Please, Sign In to add comment