Connecter.h

Includes:
<Foundation/Foundation.h>
"ConnecterBlock.h"

Introduction

Use the links in the table of contents to the left to access the documentation.



Methods

+close
+connect
+connect:
+read:
+write:receCallBack:

close


-(void)close;  
Discussion

: 关闭连接


connect


-(void)connect;  
Discussion

: 连接


connect:


-(void)connect:(void(^)(ConnectState state))connectState;  
Parameters
connectState

连接状态

Discussion

: 连接到指定设备


read:


-(void)read:(void(^)(NSData *data))data;  
Discussion

读取数据 @parma data 读取到的数据


write:receCallBack:


-(void)write:(NSData *)data receCallBack:(void(^)(NSData *data))callBack;  
Discussion

发送数据 向输出流中写入数据

 


文档更新时间: 2020-05-12 09:23   作者:Gainscha佳博