build 489
This commit is contained in:
parent
e016c9e5ef
commit
a54e87167e
|
|
@ -70,7 +70,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>488</string>
|
||||
<string>489</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue