新版本
This commit is contained in:
+17
@@ -9,6 +9,8 @@
|
||||
#import "IfishUDPBroadCastHelper.h"
|
||||
#import "LxGetCurrentIp.h"
|
||||
#import "AppDelegate.h"
|
||||
#import "ConnectHotspotModel.h"
|
||||
|
||||
@implementation IfishUDPBroadCastHelper
|
||||
|
||||
+ (IfishUDPBroadCastHelper *)sharedInstance{
|
||||
@@ -107,6 +109,21 @@
|
||||
[self.loopTimer invalidate];
|
||||
}
|
||||
|
||||
-(void)sendConnectHotspotSoketdata{
|
||||
NSString* hostS = @"120.55.190.56";
|
||||
// //120.55.190.56 服务器IP 指令中用
|
||||
ConnectHotspotModel *model = [ConnectHotspotModel new];
|
||||
model.ssidName =@"";
|
||||
model.pwd = @"";
|
||||
NSString *request=[NSString stringWithFormat:@"%@", model.description];
|
||||
|
||||
NSData *data=[dataContorl stringToHexData:request];
|
||||
|
||||
UInt16 port = 333;
|
||||
[self.clientSocket receiveWithTimeout:-1 tag:0];
|
||||
|
||||
[self.clientSocket sendData:data toHost:hostS port:port withTimeout:-1 tag:0];
|
||||
}
|
||||
|
||||
-(void)dealloc{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user