build 489

This commit is contained in:
xuemh 2018-08-06 09:18:32 +08:00
parent e016c9e5ef
commit a54e87167e
2 changed files with 10 additions and 1 deletions

View File

@ -70,7 +70,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>488</string>
<string>489</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>

View File

@ -125,6 +125,15 @@
- (void)sendToDeviceWithSSIDName:(NSString *)name andSSIDPWD:(NSString *)pwd {
self.socket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
NSError *error;
[self.socket bindToPort:9090 error:&error];
[self.socket enableBroadcast:YES error:&error];
if (error) {
[self.view makeToast:error.localizedDescription];
} else {
[self.socket beginReceiving:&error];
}
[self.socket sendData:[self updmessageData:name ssidPwd:pwd] toHost:@"192.168.4.1" port:333 withTimeout:-1 tag:0];
}