新版本

This commit is contained in:
roy
2019-03-12 09:26:46 +08:00
parent cbbfcb098a
commit c08d198e11
431 changed files with 19432 additions and 9136 deletions
@@ -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{