You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

888 lines
21 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECellBluetoothManager Class Reference</title>
<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
<header>
<div class="container" class="hide-in-xcode">
<h1 id="library-title">
<a href="../index.html">ECellBluetooth </a>
</h1>
<p id="developer-home">
<a href="../index.html">ECell</a>
</p>
</div>
</header>
<aside>
<div class="container">
<nav>
<ul id="header-buttons" role="toolbar">
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
<li id="on-this-page" role="navigation">
<label>
On This Page
<div class="chevron">
<div class="chevy chevron-left"></div>
<div class="chevy chevron-right"></div>
</div>
<select id="jump-to">
<option value="top">Jump To&#133;</option>
<option value="tasks">Tasks</option>
<optgroup label="Properties">
<option value="//api/name/centralManager">centralManager</option>
<option value="//api/name/checkoutTimer">checkoutTimer</option>
<option value="//api/name/commandBleItems">commandBleItems</option>
<option value="//api/name/commandTimeOutNumber">commandTimeOutNumber</option>
<option value="//api/name/connected">connected</option>
<option value="//api/name/currenData">currenData</option>
<option value="//api/name/currenItem">currenItem</option>
<option value="//api/name/currenPeripheral">currenPeripheral</option>
<option value="//api/name/delegate">delegate</option>
<option value="//api/name/dialWriteCharacteristic">dialWriteCharacteristic</option>
<option value="//api/name/executing">executing</option>
<option value="//api/name/isBind">isBind</option>
<option value="//api/name/poweredOn">poweredOn</option>
<option value="//api/name/reconnectPeripheral">reconnectPeripheral</option>
<option value="//api/name/resultReportBlock">resultReportBlock</option>
<option value="//api/name/rssiNum">rssiNum</option>
<option value="//api/name/scanDevices">scanDevices</option>
<option value="//api/name/timeNumber">timeNumber</option>
<option value="//api/name/totalData">totalData</option>
<option value="//api/name/writeCharacteristic">writeCharacteristic</option>
</optgroup>
<optgroup label="Class Methods">
<option value="//api/name/shareInstance">+ shareInstance</option>
</optgroup>
<optgroup label="Instance Methods">
<option value="//api/name/addPairedConnectedArray">- addPairedConnectedArray</option>
<option value="//api/name/cancelCurrentPeripheralConnection">- cancelCurrentPeripheralConnection</option>
<option value="//api/name/checkCRCHandleWithData:confirm:">- checkCRCHandleWithData:confirm:</option>
<option value="//api/name/checkCRCWithData:">- checkCRCWithData:</option>
<option value="//api/name/checkDataWithData:ByteIndex:bitIndex:">- checkDataWithData:ByteIndex:bitIndex:</option>
<option value="//api/name/clickTimeout:">- clickTimeout:</option>
<option value="//api/name/completeAndTimeouthandle">- completeAndTimeouthandle</option>
<option value="//api/name/connectDeviceWithModel:">- connectDeviceWithModel:</option>
<option value="//api/name/handleDeviceControlReceiveData:">- handleDeviceControlReceiveData:</option>
<option value="//api/name/handleDeviceDisConnect">- handleDeviceDisConnect</option>
<option value="//api/name/handleReceiveData:">- handleReceiveData:</option>
<option value="//api/name/handleWithByteBuffer:">- handleWithByteBuffer:</option>
<option value="//api/name/listenResult:">- listenResult:</option>
<option value="//api/name/loopRequest">- loopRequest</option>
<option value="//api/name/registrationServices:IsReconnect:">- registrationServices:IsReconnect:</option>
<option value="//api/name/requestItemFromIndex:">- requestItemFromIndex:</option>
<option value="//api/name/startAndStopReconnect:">- startAndStopReconnect:</option>
<option value="//api/name/startScan">- startScan</option>
<option value="//api/name/stitchWithErr:Ack:Vision:">- stitchWithErr:Ack:Vision:</option>
<option value="//api/name/stopScan">- stopScan</option>
<option value="//api/name/writeWithBleItem:">- writeWithBleItem:</option>
</optgroup>
</select>
</label>
</li>
</ul>
</nav>
</div>
</aside>
<article>
<div id="overview_contents" class="container">
<div id="content">
<main role="main">
<h1 class="title">ECellBluetoothManager Class Reference</h1>
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<th>Inherits from</th>
<td>NSObject</td>
</tr><tr>
<th>Declared in</th>
<td>ECellBluetoothManager.h</td>
</tr>
</tbody></table></div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="task-title">Other Methods</h2>
<div class="task-list">
<div class="section-method">
<a name="//api/name/delegate" title="delegate"></a>
<h3 class="method-title"><code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>设置代理 | Setting up the agent</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) id&lt;ECellBluetoothDelegate&gt; delegate</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>设置代理 | Setting up the agent</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/centralManager" title="centralManager"></a>
<h3 class="method-title"><code><a href="#//api/name/centralManager">&nbsp;&nbsp;centralManager</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>蓝牙管理中心 | Bluetooth Management Center</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) CBCentralManager *centralManager</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>蓝牙管理中心 | Bluetooth Management Center</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/currenPeripheral" title="currenPeripheral"></a>
<h3 class="method-title"><code><a href="#//api/name/currenPeripheral">&nbsp;&nbsp;currenPeripheral</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>外围设备 | Peripherals</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nullable, nonatomic, strong) CBPeripheral *currenPeripheral</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>外围设备 | Peripherals</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/poweredOn" title="poweredOn"></a>
<h3 class="method-title"><code><a href="#//api/name/poweredOn">&nbsp;&nbsp;poweredOn</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>蓝牙是否开启 | Is Bluetooth enabled?</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) BOOL poweredOn</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>蓝牙是否开启 | Is Bluetooth enabled?</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/connected" title="connected"></a>
<h3 class="method-title"><code><a href="#//api/name/connected">&nbsp;&nbsp;connected</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>蓝牙是否连接 | Bluetooth is connected</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, readonly) BOOL connected</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>蓝牙是否连接 | Bluetooth is connected</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/isBind" title="isBind"></a>
<h3 class="method-title"><code><a href="#//api/name/isBind">&nbsp;&nbsp;isBind</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>当前连接设备是否绑定 | Is the current <a href="#//api/name/connected">connected</a> device bound?</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL isBind</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>当前连接设备是否绑定 | Is the current <a href="#//api/name/connected">connected</a> device bound?</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/rssiNum" title="rssiNum"></a>
<h3 class="method-title"><code><a href="#//api/name/rssiNum">&nbsp;&nbsp;rssiNum</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>设置扫描过滤信号弱的设备 默认值 80 大于80会被过滤
Set the device with weak scan filtering signal. Default value 80 is greater than 80 will be filtered.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) NSInteger rssiNum</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>设置扫描过滤信号弱的设备 默认值 80 大于80会被过滤
Set the device with weak scan filtering signal. Default value 80 is greater than 80 will be filtered.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/commandTimeOutNumber" title="commandTimeOutNumber"></a>
<h3 class="method-title"><code><a href="#//api/name/commandTimeOutNumber">&nbsp;&nbsp;commandTimeOutNumber</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>发送指令超时时长 默认5秒
Send command timeout defaults to 5 seconds by default</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) NSInteger commandTimeOutNumber</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>发送指令超时时长 默认5秒
Send command timeout defaults to 5 seconds by default</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/startScan" title="startScan"></a>
<h3 class="method-title"><code><a href="#//api/name/startScan">&ndash;&nbsp;startScan</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>开始扫描 | Start scanning</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)startScan</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>开始扫描 | Start scanning</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/stopScan" title="stopScan"></a>
<h3 class="method-title"><code><a href="#//api/name/stopScan">&ndash;&nbsp;stopScan</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>停止扫描 | Stop scanning</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)stopScan</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>停止扫描 | Stop scanning</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/connectDeviceWithModel:" title="connectDeviceWithModel:"></a>
<h3 class="method-title"><code><a href="#//api/name/connectDeviceWithModel:">&ndash;&nbsp;connectDeviceWithModel:</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>选择外围设备连接 | Select peripheral connection</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)connectDeviceWithModel:(ECellPeripheralModel *)<em>model</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
<tr>
<th scope="row" class="argument-name"><code>model</code></th>
<td><p><a href="../Classes/ECellPeripheralModel.html">ECellPeripheralModel</a> 对象 | <a href="../Classes/ECellPeripheralModel.html">ECellPeripheralModel</a> object</p></td>
</tr>
</table>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/cancelCurrentPeripheralConnection" title="cancelCurrentPeripheralConnection"></a>
<h3 class="method-title"><code><a href="#//api/name/cancelCurrentPeripheralConnection">&ndash;&nbsp;cancelCurrentPeripheralConnection</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>断开当前外围设备的连接 (将会清空设备信息不再重连) | Disconnect the current peripheral device (The device information will be cleared and will not be re<a href="#//api/name/connected">connected</a>)</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)cancelCurrentPeripheralConnection</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>断开当前外围设备的连接 (将会清空设备信息不再重连) | Disconnect the current peripheral device (The device information will be cleared and will not be re<a href="#//api/name/connected">connected</a>)</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/registrationServices:IsReconnect:" title="registrationServices:IsReconnect:"></a>
<h3 class="method-title"><code><a href="#//api/name/registrationServices:IsReconnect:">&ndash;&nbsp;registrationServices:IsReconnect:</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>注册SDK服务 | Register for SDK service</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)registrationServices:(BOOL)<em>outputSdkLog</em> IsReconnect:(BOOL)<em>isReconnect</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
<tr>
<th scope="row" class="argument-name"><code>outputSdkLog</code></th>
<td><p>是否输出蓝牙协议运行日志 (默认NO) | Whether to output the Bluetooth protocol running log (default NO)</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>isReconnect</code></th>
<td><p>是否需要重连机制 (默认YES) | Whether a reconnect mechanism is required (default YES)</p></td>
</tr>
</table>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>注册SDK服务 | Register for SDK service</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/shareInstance" title="shareInstance"></a>
<h3 class="method-title"><code><a href="#//api/name/shareInstance">+&nbsp;shareInstance</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>初始化蓝牙管理中心对象
Initialize the Bluetooth Management Center object</p>
</div>
<div class="method-subsection method-declaration"><code>+ (__kindof ECellBluetoothManager *)shareInstance</code></div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>HPlusBluetoothManager</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ECellBluetoothManager.h</code></p>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2020 ECell. All rights reserved. Updated: 2020-06-17</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
</div>
</footer>
</div>
</div>
</article>
<script src="../js/script.js"></script>
</body>
</html>