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.
456 lines
12 KiB
456 lines
12 KiB
<!DOCTYPE html> |
|
<html> |
|
<head> |
|
<meta charset="utf-8"> |
|
|
|
<title>ECellBluetoothDelegate Protocol 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…</option> |
|
|
|
|
|
|
|
|
|
<option value="tasks">Tasks</option> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<optgroup label="Instance Methods"> |
|
|
|
<option value="//api/name/bluetoothManager:allDevices:otaDevices:">- bluetoothManager:allDevices:otaDevices:</option> |
|
|
|
<option value="//api/name/bluetoothManager:centerManager:didConnectPeripheral:isOatMode:">- bluetoothManager:centerManager:didConnectPeripheral:isOatMode:</option> |
|
|
|
<option value="//api/name/bluetoothManager:centerManager:disConnectPeripheral:isOatMode:">- bluetoothManager:centerManager:disConnectPeripheral:isOatMode:</option> |
|
|
|
<option value="//api/name/bluetoothManager:connectPeripheralError:">- bluetoothManager:connectPeripheralError:</option> |
|
|
|
<option value="//api/name/bluetoothManager:didUpdateState:">- bluetoothManager:didUpdateState:</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">ECellBluetoothDelegate Protocol Reference</h1> |
|
|
|
|
|
<div class="section section-specification"><table cellspacing="0"><tbody> |
|
<tr> |
|
<th>Conforms to</th> |
|
<td>NSObject</td> |
|
</tr><tr> |
|
<th>Declared in</th> |
|
<td>ECellBluetoothDelegate.h</td> |
|
</tr> |
|
</tbody></table></div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="section section-tasks"> |
|
<a title="Tasks" name="tasks"></a> |
|
|
|
|
|
|
|
|
|
|
|
<div class="task-list"> |
|
<div class="section-method"> |
|
<a name="//api/name/bluetoothManager:didUpdateState:" title="bluetoothManager:didUpdateState:"></a> |
|
<h3 class="method-title"><code><a href="#//api/name/bluetoothManager:didUpdateState:">– bluetoothManager:didUpdateState:</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 status</p> |
|
</div> |
|
|
|
|
|
|
|
<div class="method-subsection method-declaration"><code>- (void)bluetoothManager:(ECellBluetoothManager *)<em>manager</em> didUpdateState:(ECell_BLE_MANAGER_STATE)<em>state</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>manager</code></th> |
|
<td><p>HPlus蓝牙管理中心 | HPlus Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>state</code></th> |
|
<td><p>状态 | Status</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">ECellBluetoothDelegate.h</code></p> |
|
</div> |
|
|
|
|
|
</div> |
|
</div> |
|
</div><div class="section-method"> |
|
<a name="//api/name/bluetoothManager:allDevices:otaDevices:" title="bluetoothManager:allDevices:otaDevices:"></a> |
|
<h3 class="method-title"><code><a href="#//api/name/bluetoothManager:allDevices:otaDevices:">– bluetoothManager:allDevices:otaDevices:</a></code> |
|
</h3> |
|
|
|
<div class="method-info"> |
|
<div class="pointy-thing"></div> |
|
|
|
<div class="method-info-container"> |
|
|
|
|
|
<div class="method-subsection brief-description"> |
|
<p>扫描所有外围设备 | Scan all peripherals</p> |
|
</div> |
|
|
|
|
|
|
|
<div class="method-subsection method-declaration"><code>- (void)bluetoothManager:(ECellBluetoothManager *)<em>manager</em> allDevices:(NSArray<ECellPeripheralModel*> *)<em>allDevices</em> otaDevices:(NSArray<ECellPeripheralModel*> *)<em>otaDevices</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>manager</code></th> |
|
<td><p>HPlus蓝牙管理中心 | HPlus Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>allDevices</code></th> |
|
<td><p>扫描所有外围设备(包括OTA设备集合) | Scan all peripherals (including OTA device collections)</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>otaDevices</code></th> |
|
<td><p>OTA 设备集合 | OTA Device Collection</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">ECellBluetoothDelegate.h</code></p> |
|
</div> |
|
|
|
|
|
</div> |
|
</div> |
|
</div><div class="section-method"> |
|
<a name="//api/name/bluetoothManager:centerManager:didConnectPeripheral:isOatMode:" title="bluetoothManager:centerManager:didConnectPeripheral:isOatMode:"></a> |
|
<h3 class="method-title"><code><a href="#//api/name/bluetoothManager:centerManager:didConnectPeripheral:isOatMode:">– bluetoothManager:centerManager:didConnectPeripheral:isOatMode:</a></code> |
|
</h3> |
|
|
|
<div class="method-info"> |
|
<div class="pointy-thing"></div> |
|
|
|
<div class="method-info-container"> |
|
|
|
|
|
<div class="method-subsection brief-description"> |
|
<p>连接设备成功回调 | Connected device successfully callback</p> |
|
</div> |
|
|
|
|
|
|
|
<div class="method-subsection method-declaration"><code>- (void)bluetoothManager:(ECellBluetoothManager *)<em>manager</em> centerManager:(CBCentralManager *)<em>centerManager</em> didConnectPeripheral:(CBPeripheral *)<em>peripheral</em> isOatMode:(BOOL)<em>isOtaMode</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>manager</code></th> |
|
<td><p>HPlus蓝牙管理中心 | HPlus Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>centerManager</code></th> |
|
<td><p>蓝牙管理中心 | Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>peripheral</code></th> |
|
<td><p>外围设备 | Peripherals</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>isOtaMode</code></th> |
|
<td><p>连接是否在OTA模式 | Is the connection in OTA mode?</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">ECellBluetoothDelegate.h</code></p> |
|
</div> |
|
|
|
|
|
</div> |
|
</div> |
|
</div><div class="section-method"> |
|
<a name="//api/name/bluetoothManager:connectPeripheralError:" title="bluetoothManager:connectPeripheralError:"></a> |
|
<h3 class="method-title"><code><a href="#//api/name/bluetoothManager:connectPeripheralError:">– bluetoothManager:connectPeripheralError:</a></code> |
|
</h3> |
|
|
|
<div class="method-info"> |
|
<div class="pointy-thing"></div> |
|
|
|
<div class="method-info-container"> |
|
|
|
|
|
<div class="method-subsection brief-description"> |
|
<p>连接设备错误回调,当解绑设备断开连接时不会回调此方法 |
|
Connection Device Error Callback,This method is not called back when the unbound device is disconnected.</p> |
|
</div> |
|
|
|
|
|
|
|
<div class="method-subsection method-declaration"><code>- (void)bluetoothManager:(ECellBluetoothManager *)<em>manager</em> connectPeripheralError:(NSError *)<em>error</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>manager</code></th> |
|
<td><p>HPlus蓝牙管理中心 | HPlus Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>error</code></th> |
|
<td><p>错误信息 | Error message</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">ECellBluetoothDelegate.h</code></p> |
|
</div> |
|
|
|
|
|
</div> |
|
</div> |
|
</div><div class="section-method"> |
|
<a name="//api/name/bluetoothManager:centerManager:disConnectPeripheral:isOatMode:" title="bluetoothManager:centerManager:disConnectPeripheral:isOatMode:"></a> |
|
<h3 class="method-title"><code><a href="#//api/name/bluetoothManager:centerManager:disConnectPeripheral:isOatMode:">– bluetoothManager:centerManager:disConnectPeripheral:isOatMode:</a></code> |
|
</h3> |
|
|
|
<div class="method-info"> |
|
<div class="pointy-thing"></div> |
|
|
|
<div class="method-info-container"> |
|
|
|
|
|
<div class="method-subsection brief-description"> |
|
<p>设备断开连接回调 | Device disconnect callback</p> |
|
</div> |
|
|
|
|
|
|
|
<div class="method-subsection method-declaration"><code>- (void)bluetoothManager:(ECellBluetoothManager *)<em>manager</em> centerManager:(CBCentralManager *)<em>centerManager</em> disConnectPeripheral:(CBPeripheral *)<em>peripheral</em> isOatMode:(BOOL)<em>isOtaMode</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>manager</code></th> |
|
<td><p>HPlus蓝牙管理中心 | HPlus Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>centerManager</code></th> |
|
<td><p>蓝牙管理中心 | Bluetooth Management Center</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>peripheral</code></th> |
|
<td><p>外围设备 | Peripherals</p></td> |
|
</tr> |
|
|
|
<tr> |
|
<th scope="row" class="argument-name"><code>isOtaMode</code></th> |
|
<td><p>连接是否在OTA模式 | Is the connection in OTA mode?</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">ECellBluetoothDelegate.h</code></p> |
|
</div> |
|
|
|
|
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
</main> |
|
|
|
<footer> |
|
<div class="footer-copyright"> |
|
|
|
<p class="copyright">Copyright © 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> |