Guest User

Untitled

a guest
Mar 9th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. NEHotspotEAPSettings *settings = [[NEHotspotEAPSettings alloc]init];
  2. settings.password = self.password.text;
  3. settings.username = self.username.text;
  4. settings.supportedEAPTypes = [NSArray arrayWithObjects:[NSNumber numberWithInteger:NEHotspotConfigurationEAPTypeEAPPEAP], nil];
  5. NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc]initWithSSID:self.ssid.text eapSettings:settings];
  6. [[NEHotspotConfigurationManager sharedManager]applyConfiguration:configuration completionHandler:^(NSError * _Nullable error) {
  7. if (error) { 
  8. NSLog(@"Error: %@",error.localizedDescription);
  9. } else {
  10. NSLog(@“Connected”);
  11. }
  12. }];
  13.  
  14. settings.trustedServerNames
Add Comment
Please, Sign In to add comment