Thanks, I have report it, this is the id FB15933566 (SoftAP AP and STA modes coexist. When the band is switched, the Wi-Fi connection is disconnected.)
For the socket, we use CocoaAsyncSocket, very simple code, like below:
- (void)connect {
NSString *host = @"192.168.42.1";
uint16_t port = 6666;
NSError *error = nil;
if (![self.asyncSocket connectToHost:host onPort:port error:&error])
{
NSLog(@"Error connecting: %@", error);
}
}