Home
last modified time | relevance | path

Searched refs:GattServer (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_gatt_server.h176 class BLUETOOTH_API GattServer : public std::enable_shared_from_this<GattServer> {
185 static std::shared_ptr<GattServer> CreateInstance(std::shared_ptr<GattServerCallback> callback);
293 ~GattServer();
300 GattServer() = delete;
302 BLUETOOTH_DISALLOW_COPY_AND_ASSIGN(GattServer);
305 explicit GattServer(std::shared_ptr<GattServerCallback> callback);
313 …explicit GattServer(PassKey, std::shared_ptr<GattServerCallback> callback) : GattServer(callback) … in GattServer() function
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_gatt_server.cpp77 struct GattServer::impl {
103 bool Init(std::weak_ptr<GattServer>);
381 std::weak_ptr<GattServer> server_;
442 GattServer::GattServer(std::shared_ptr<GattServerCallback> callback) in GattServer() function in OHOS::Bluetooth::GattServer
451 bool GattServer::impl::Init(std::weak_ptr<GattServer> server) in Init()
472 std::shared_ptr<GattServer> GattServer::CreateInstance(std::shared_ptr<GattServerCallback> callback) in CreateInstance()
556 int GattServer::impl::RespondDescriptorRead( in RespondDescriptorRead()
624 void GattServer::ClearServices() in ClearServices()
640 int GattServer::Close() in Close()
781 int GattServer::SendResponse( in SendResponse()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ApiDoc/GattDoc/
H A DGatt功能界面使用说明文档.md67 - 验证方法:尝试可以去连接GattServer端的设备。
174 <img src="Gatt与GattServer跳转1.png" alt="Gatt与GattServer跳转1">
180 ![GattServer与GattServerSetting跳转](GattServer与GattServerSetting跳转.png)
182 #### GattServer中的主要接口
186 …eGattServer | () | GattServer | |
203 - 限制条件:蓝牙状态要打开,且GattServer不存在实例。
204 - 验证方法:可以尝试用Client端去搜索本设备的GattServer端。
248 - 使用指导:关闭此{GattServer}对象并注销其回调。
/ohos5.0/foundation/communication/bluetooth_service/test/unittest/gatt/
H A Dgatt_server_test.cpp103 GattServer server(callback_);
121 GattServer server(callback_);
137 GattServer server(callback_);
160 GattServer server(callback_);
178 GattServer server(callback_);
198 GattServer server(callback_);
220 GattServer server(callback_);
245 GattServer server(callback_);
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
H A Dnapi_bluetooth_gatt_server.cpp141 …CheckGattsAddService(napi_env env, napi_callback_info info, std::shared_ptr<GattServer> &outServer, in CheckGattsAddService()
180 std::shared_ptr<GattServer> server {nullptr}; in AddService()
190 …atus CheckGattsClose(napi_env env, napi_callback_info info, std::shared_ptr<GattServer> &outServer) in CheckGattsClose()
206 std::shared_ptr<GattServer> server {nullptr}; in Close()
216 std::shared_ptr<GattServer> &outServer, UUID &outUuid) in CheckGattsRemoveService()
237 std::shared_ptr<GattServer> server {nullptr}; in RemoveGattService()
257 …us CheckGattsSendRsp(napi_env env, napi_callback_info info, std::shared_ptr<GattServer> &outServer, in CheckGattsSendRsp()
279 std::shared_ptr<GattServer> server {nullptr}; in SendResponse()
292 static GattCharacteristic *GetGattCharacteristic(const std::shared_ptr<GattServer> &server, const U… in GetGattCharacteristic()
363 …tus CheckGattsNotify(napi_env env, napi_callback_info info, std::shared_ptr<GattServer> &outServer, in CheckGattsNotify()
[all …]
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/
H A Dchangelogs-bluetooth.md81 | BLE | function createGattServer(): GattServer; | function createGattServer(): GattServer; | API9接…
89 | GattServer | stopAdvertising(): void; | stopAdvertising(): void; | API9接口变更,迁移到@ohos.bluetoothMan…
90 | GattServer | addService(service: GattService): boolean; | addService(service: GattService): void;…
91 | GattServer | removeService(serviceUuid: string): boolean; | removeService(serviceUuid: string): v…
92 | GattServer | close(): void; | close(): void; | API9接口变更,迁移到@ohos.bluetoothManager.d.ts
94 | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | sendResponse(serverResponse…
99 | GattServer | on(type: "descriptorRead", callback: Callback&lt;DescriptorReadReq&gt;): void; | on(…
100 | GattServer | off(type: "descriptorRead", callback?: Callback&lt;DescriptorReadReq&gt;): void; | o…
101 | GattServer | on(type: "descriptorWrite", callback: Callback&lt;DescriptorWriteReq&gt;): void; | o…
102 | GattServer | off(type: "descriptorWrite", callback?: Callback&lt;DescriptorWriteReq&gt;): void; |…
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_gatt_server.h47 std::shared_ptr<GattServer> &GetServer() in GetServer()
63 server_ = GattServer::CreateInstance(tmp); in NapiGattServer()
70 std::shared_ptr<GattServer> server_ = nullptr;
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/AutoDoc/
H A D自动化测试使用说明文档.md51 GattServer
53 ![GattServer自动化测试](GattServer自动化测试.png)
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/
H A Djs-apidiff-communication.md71 |新增|NA|模块名: ohos.bluetoothManager<br>类名: GattServer|@ohos.bluetoothManager.d.ts|
461 |废弃版本有变化|类名:GattServer<br>废弃版本:N/A|类名:GattServer<br>废弃版本:9<br>代替接口:ohos.bluetoothManager/bluetoothM…
463GattServer<br>方法 or 属性:stopAdvertising(): void;<br>废弃版本:N/A|类名:GattServer<br>方法 or 属性:stopAdvertis…
464GattServer<br>方法 or 属性:addService(service: GattService): boolean;<br>废弃版本:N/A|类名:GattServer<br>方法 …
465GattServer<br>方法 or 属性:removeService(serviceUuid: string): boolean;<br>废弃版本:N/A|类名:GattServer<br>方…
466GattServer<br>方法 or 属性:close(): void;<br>废弃版本:N/A|类名:GattServer<br>方法 or 属性:close(): void;<br>废弃版本…
468GattServer<br>方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;<br>废弃版本:N/A|类名:GattS…
473GattServer<br>方法 or 属性:on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>): void;<b…
474GattServer<br>方法 or 属性:off(type: "descriptorRead", callback?: Callback\<DescriptorReadReq>): void;…
475GattServer<br>方法 or 属性:on(type: "descriptorWrite", callback: Callback\<DescriptorWriteReq>): void;…
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-communicate.md398 | ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback\<DescriptorWriteRe…
399 | ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback\<DescriptorWriteReq>…
400 | ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback\<DescriptorReadReq>…
401 | ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>):…
405 | ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback\<CharacteristicRe…
406 | ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | 新增 |
408 | ohos.bluetooth | GattServer | close(): void; | 新增 |
409 | ohos.bluetooth | GattServer | removeService(serviceUuid: string): boolean; | 新增 |
410 | ohos.bluetooth | GattServer | addService(service: GattService): boolean; | 新增 |
411 | ohos.bluetooth | GattServer | stopAdvertising(): void; | 新增 |
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/
H A Dchangelogs-bluetooth.md81 … | function createGattServer(): GattServer; | function createGattServe…
89 | GattServer | stopAdvertising(): void; | sto…
90 | GattServer | addService(service: GattService): boolean; | add…
92 | GattServer | close(): void; | close(): void; | Migrated this API in API version 9 to **@ohos.blue…
94 | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | sendResponse(serverResponse…
95 | GattServer | on(type: "characteristicRead", callback: Callback&lt;CharacteristicReadReq&gt;): voi…
99 | GattServer | on(type: "descriptorRead", callback: Callback&lt;DescriptorReadReq&gt;): void; | on(…
100 | GattServer | off(type: "descriptorRead", callback?: Callback&lt;DescriptorReadReq&gt;): void; | o…
101 | GattServer | on(type: "descriptorWrite", callback: Callback&lt;DescriptorWriteReq&gt;): void; | o…
102 | GattServer | off(type: "descriptorWrite", callback?: Callback&lt;DescriptorWriteReq&gt;): void; |…
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ApiDoc/GattManagerDoc/
H A DGattManager测试使用说明文档.md119 - 验证方法:尝试可以去连接GattServer端的设备。
300 #### GattServer中的主要接口(ohos.bluetoothManager.d.ts)
304 …eGattServer | () | GattServer | |
368 - 限制条件:蓝牙状态要打开,且GattServer不存在实例。
370 - 验证方法:可以尝试用Client端去搜索本设备的GattServer端。
436 - 使用指导:关闭此{GattServer}对象并注销其回调。
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-communicate.md398 | ohos.bluetooth | GattServer | off(type: "descriptorWrite", callback?: Callback\<DescriptorWriteRe…
399 | ohos.bluetooth | GattServer | on(type: "descriptorWrite", callback: Callback\<DescriptorWriteReq>…
400 | ohos.bluetooth | GattServer | off(type: "descriptorRead", callback?: Callback\<DescriptorReadReq>…
401 | ohos.bluetooth | GattServer | on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>):…
405 | ohos.bluetooth | GattServer | on(type: "characteristicRead", callback: Callback\<CharacteristicRe…
406 | ohos.bluetooth | GattServer | sendResponse(serverResponse: ServerResponse): boolean; | Added|
408 | ohos.bluetooth | GattServer | close(): void; | Added|
409 | ohos.bluetooth | GattServer | removeService(serviceUuid: string): boolean; | Added|
410 | ohos.bluetooth | GattServer | addService(service: GattService): boolean; | Added|
411 | ohos.bluetooth | GattServer | stopAdvertising(): void; | Added|
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/
H A Djs-apidiff-communication.md88 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts|
99 |新增|NA|类名:GattServer;<br>方法or属性:close(): void;|@ohos.bluetooth.ble.d.ts|
543GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer
545 |废弃版本有变化|类名:GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopA…
546GattServer;<br>方法or属性:addService(service: GattService): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:a…
547GattServer;<br>方法or属性:removeService(serviceUuid: string): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性…
548 …变化|类名:GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版…
551GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): void;<br>旧版本信息:|类名:GattServer;…
554GattServer;<br>方法or属性:on(type: 'descriptorRead', callback: Callback\<DescriptorReadRequest>): void…
555GattServer;<br>方法or属性:on(type: 'descriptorWrite', callback: Callback\<DescriptorWriteRequest>): vo…
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ScenarioDoc/
H A D场景测试使用说明文档.md55 ![GattServer.png](GattServer.png)
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth.md1122 createGattServer(): GattServer
1124 创建一个可使用的GattServer实例。
1135 | [GattServer](#gattserver) | server端类,使用server端方法之前需要创建该类的实例进行操作。 |
1140 let gattServer : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1715 ## GattServer section
1761 let gattServer : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1813 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1908 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1917 关闭服务端功能,去注册server在协议栈的注册,调用该接口后[GattServer](#gattserver)实例将不能再使用。
1929 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
[all …]
H A Djs-apis-bluetooth-ble.md33 createGattServer(): GattServer
35 创建GattServer实例。
45 | [GattServer](#gattserver) | 返回一个Gatt服务的实例。 |
50 let gattServer: ble.GattServer = ble.createGattServer();
1330 ## GattServer section
1437 let server: ble.GattServer = ble.createGattServer();
1475 let server: ble.GattServer = ble.createGattServer();
1694 let gattServer: ble.GattServer = ble.createGattServer();
1790 let gattServer: ble.GattServer = ble.createGattServer();
1891 let gattServer: ble.GattServer = ble.createGattServer();
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/
H A DtestDataModels.ets374 'name' : 'GattServer' ,
569 'category' : CaseCategory.GattServer
577 'category' : CaseCategory.GattServer
585 'category' : CaseCategory.GattServer
593 'category' : CaseCategory.GattServer
601 'category' : CaseCategory.GattServer
609 'category' : CaseCategory.GattServer
1230 'detail' : 'GattServer场景测试' ,
1395 'detail' : 'GattServer速率性能测试' ,
1452 'detail' : 'GattServer速率性能测试' ,
[all …]
H A DbleInterface.ets26 let gattServerInstance: bluetooth.GattServer;
38 message = "GattServer existed!";
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/BenchmarkDoc/
H A D性能测试使用说明文档.md73 ![GattServer.png](GattServer.png)
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/
H A Djs-apidiff-communication.md71 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: GattServer|@ohos.bluetoothManager.d.ts|
461GattServer<br>Deprecated version: N/A|Class name: GattServer<br>Deprecated version: 9<br>Substitut…
463GattServer<br>Method or attribute name: stopAdvertising(): void;<br>Deprecated version: N/A|Class …
464GattServer<br>Method or attribute name: addService(service: GattService): boolean;<br>Deprecated v…
465GattServer<br>Method or attribute name: removeService(serviceUuid: string): boolean;<br>Deprecated…
466GattServer<br>Method or attribute name: close(): void;<br>Deprecated version: N/A|Class name: Gatt…
468GattServer<br>Method or attribute name: sendResponse(serverResponse: ServerResponse): boolean;<br>…
473GattServer<br>Method or attribute name: on(type: "descriptorRead", callback: Callback\<DescriptorR…
474GattServer<br>Method or attribute name: off(type: "descriptorRead", callback?: Callback\<Descripto…
475GattServer<br>Method or attribute name: on(type: "descriptorWrite", callback: Callback\<Descriptor…
[all …]
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/
H A Djs-apidiff-communication.md88 |Added|NA|Class name: ble;<br>Method or attribute name: function createGattServer(): GattServer;|@o…
97 |Added|NA|Class name: GattServer;<br>Method or attribute name: addService(service: GattService): vo…
98 |Added|NA|Class name: GattServer;<br>Method or attribute name: removeService(serviceUuid: string): …
99 |Added|NA|Class name: GattServer;<br>Method or attribute name: close(): void;|@ohos.bluetooth.ble.d…
543GattServer;<br>Method or attribute name: interface GattServer<br>Old version information: |Class n…
546GattServer;<br>Method or attribute name: addService(service: GattService): void;<br>Old version in…
547GattServer;<br>Method or attribute name: removeService(serviceUuid: string): void;<br>Old version …
548GattServer;<br>Method or attribute name: close(): void;<br>Old version information: |Class name: G…
551GattServer;<br>Method or attribute name: sendResponse(serverResponse: ServerResponse): void;<br>Ol…
554GattServer;<br>Method or attribute name: on(type: 'descriptorRead', callback: Callback\<Descriptor…
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-communication.md81 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts|
92 |新增|NA|类名:GattServer;<br>方法or属性:close(): void;|@ohos.bluetooth.ble.d.ts|
792GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer
794 |废弃版本有变化|类名:GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopA…
795GattServer;<br>方法or属性:addService(service: GattService): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:a…
796GattServer;<br>方法or属性:removeService(serviceUuid: string): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性…
797 …变化|类名:GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版…
800GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): void;<br>旧版本信息:|类名:GattServer;…
803GattServer;<br>方法or属性:on(type: 'descriptorRead', callback: Callback\<DescriptorReadRequest>): void…
804GattServer;<br>方法or属性:on(type: 'descriptorWrite', callback: Callback\<DescriptorWriteRequest>): vo…
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth.md1123 createGattServer(): GattServer
1125 Creates a **GattServer** instance.
1136 | [GattServer](#gattserver) | **GattServer** instance created. Before using a method of the server,…
1141 let gattServer : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1716 ## GattServer section
1762 let gattServer : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1814 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1871 let gattServer : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1909 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
1930 let server : bluetooth.GattServer = bluetooth.BLE.createGattServer();
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-Release/
H A Djs-apidiff-communication.md134 |新增|NA|类名:BLE;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetoothManager.d.ts|
142 |新增|NA|类名:GattServer;<br>方法or属性:stopAdvertising(): void;|@ohos.bluetoothManager.d.ts|
145 |新增|NA|类名:GattServer;<br>方法or属性:close(): void;|@ohos.bluetoothManager.d.ts|
1021GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer
1023GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopAdvertising(…
1024GattServer;<br>方法or属性:addService(service: GattService): boolean;<br>旧版本信息:|类名:GattServer;<br>方法or属…
1025GattServer;<br>方法or属性:removeService(serviceUuid: string): boolean;<br>旧版本信息:|类名:GattServer;<br>方法o…
1026GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版本信息:9<…
1028GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): boolean;<br>旧版本信息:|类名:GattServ…
1031GattServer;<br>方法or属性:on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>): void;<br…
[all …]

12