/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_gatt_server.h | 176 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 D | bluetooth_gatt_server.cpp | 77 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 D | Gatt功能界面使用说明文档.md | 67 - 验证方法:尝试可以去连接GattServer端的设备。 174 <img src="Gatt与GattServer跳转1.png" alt="Gatt与GattServer跳转1"> 180  182 #### GattServer中的主要接口 186 …eGattServer | () | GattServer | | 203 - 限制条件:蓝牙状态要打开,且GattServer不存在实例。 204 - 验证方法:可以尝试用Client端去搜索本设备的GattServer端。 248 - 使用指导:关闭此{GattServer}对象并注销其回调。
|
/ohos5.0/foundation/communication/bluetooth_service/test/unittest/gatt/ |
H A D | gatt_server_test.cpp | 103 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 D | napi_bluetooth_gatt_server.cpp | 141 …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 D | changelogs-bluetooth.md | 81 | 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<DescriptorReadReq>): void; | on(… 100 | GattServer | off(type: "descriptorRead", callback?: Callback<DescriptorReadReq>): void; | o… 101 | GattServer | on(type: "descriptorWrite", callback: Callback<DescriptorWriteReq>): void; | o… 102 | GattServer | off(type: "descriptorWrite", callback?: Callback<DescriptorWriteReq>): void; |… [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_gatt_server.h | 47 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 | 自动化测试使用说明文档.md | 51 GattServer 53 
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/ |
H A D | js-apidiff-communication.md | 71 |新增|NA|模块名: ohos.bluetoothManager<br>类名: GattServer|@ohos.bluetoothManager.d.ts| 461 |废弃版本有变化|类名:GattServer<br>废弃版本:N/A|类名:GattServer<br>废弃版本:9<br>代替接口:ohos.bluetoothManager/bluetoothM… 463 …GattServer<br>方法 or 属性:stopAdvertising(): void;<br>废弃版本:N/A|类名:GattServer<br>方法 or 属性:stopAdvertis… 464 …GattServer<br>方法 or 属性:addService(service: GattService): boolean;<br>废弃版本:N/A|类名:GattServer<br>方法 … 465 …GattServer<br>方法 or 属性:removeService(serviceUuid: string): boolean;<br>废弃版本:N/A|类名:GattServer<br>方… 466 …GattServer<br>方法 or 属性:close(): void;<br>废弃版本:N/A|类名:GattServer<br>方法 or 属性:close(): void;<br>废弃版本… 468 …GattServer<br>方法 or 属性:sendResponse(serverResponse: ServerResponse): boolean;<br>废弃版本:N/A|类名:GattS… 473 …GattServer<br>方法 or 属性:on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>): void;<b… 474 …GattServer<br>方法 or 属性:off(type: "descriptorRead", callback?: Callback\<DescriptorReadReq>): void;… 475 …GattServer<br>方法 or 属性:on(type: "descriptorWrite", callback: Callback\<DescriptorWriteReq>): void;… [all …]
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/ |
H A D | js-apidiff-communicate.md | 398 | 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 D | changelogs-bluetooth.md | 81 … | 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<CharacteristicReadReq>): voi… 99 | GattServer | on(type: "descriptorRead", callback: Callback<DescriptorReadReq>): void; | on(… 100 | GattServer | off(type: "descriptorRead", callback?: Callback<DescriptorReadReq>): void; | o… 101 | GattServer | on(type: "descriptorWrite", callback: Callback<DescriptorWriteReq>): void; | o… 102 | GattServer | off(type: "descriptorWrite", callback?: Callback<DescriptorWriteReq>): void; |… [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ApiDoc/GattManagerDoc/ |
H A D | GattManager测试使用说明文档.md | 119 - 验证方法:尝试可以去连接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 D | js-apidiff-communicate.md | 398 | 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 D | js-apidiff-communication.md | 88 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts| 99 |新增|NA|类名:GattServer;<br>方法or属性:close(): void;|@ohos.bluetooth.ble.d.ts| 543 …GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer… 545 |废弃版本有变化|类名:GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopA… 546 …GattServer;<br>方法or属性:addService(service: GattService): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:a… 547 …GattServer;<br>方法or属性:removeService(serviceUuid: string): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性… 548 …变化|类名:GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版… 551 …GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): void;<br>旧版本信息:|类名:GattServer;… 554 …GattServer;<br>方法or属性:on(type: 'descriptorRead', callback: Callback\<DescriptorReadRequest>): void… 555 …GattServer;<br>方法or属性:on(type: 'descriptorWrite', callback: Callback\<DescriptorWriteRequest>): vo… [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/ScenarioDoc/ |
H A D | 场景测试使用说明文档.md | 55 
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-bluetooth.md | 1122 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 D | js-apis-bluetooth-ble.md | 33 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 D | testDataModels.ets | 374 '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 D | bleInterface.ets | 26 let gattServerInstance: bluetooth.GattServer; 38 message = "GattServer existed!";
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/doc/BenchmarkDoc/ |
H A D | 性能测试使用说明文档.md | 73 
|
/ohos5.0/docs/en/release-notes/api-diff/Beta5-to-v3.2-Release/ |
H A D | js-apidiff-communication.md | 71 |Added|NA|Module name: ohos.bluetoothManager<br>Class name: GattServer|@ohos.bluetoothManager.d.ts| 461 …GattServer<br>Deprecated version: N/A|Class name: GattServer<br>Deprecated version: 9<br>Substitut… 463 …GattServer<br>Method or attribute name: stopAdvertising(): void;<br>Deprecated version: N/A|Class … 464 …GattServer<br>Method or attribute name: addService(service: GattService): boolean;<br>Deprecated v… 465 …GattServer<br>Method or attribute name: removeService(serviceUuid: string): boolean;<br>Deprecated… 466 …GattServer<br>Method or attribute name: close(): void;<br>Deprecated version: N/A|Class name: Gatt… 468 …GattServer<br>Method or attribute name: sendResponse(serverResponse: ServerResponse): boolean;<br>… 473 …GattServer<br>Method or attribute name: on(type: "descriptorRead", callback: Callback\<DescriptorR… 474 …GattServer<br>Method or attribute name: off(type: "descriptorRead", callback?: Callback\<Descripto… 475 …GattServer<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 D | js-apidiff-communication.md | 88 |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… 543 …GattServer;<br>Method or attribute name: interface GattServer<br>Old version information: |Class n… 546 …GattServer;<br>Method or attribute name: addService(service: GattService): void;<br>Old version in… 547 …GattServer;<br>Method or attribute name: removeService(serviceUuid: string): void;<br>Old version … 548 …GattServer;<br>Method or attribute name: close(): void;<br>Old version information: |Class name: G… 551 …GattServer;<br>Method or attribute name: sendResponse(serverResponse: ServerResponse): void;<br>Ol… 554 …GattServer;<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 D | js-apidiff-communication.md | 81 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts| 92 |新增|NA|类名:GattServer;<br>方法or属性:close(): void;|@ohos.bluetooth.ble.d.ts| 792 …GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer… 794 |废弃版本有变化|类名:GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopA… 795 …GattServer;<br>方法or属性:addService(service: GattService): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:a… 796 …GattServer;<br>方法or属性:removeService(serviceUuid: string): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性… 797 …变化|类名:GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版… 800 …GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): void;<br>旧版本信息:|类名:GattServer;… 803 …GattServer;<br>方法or属性:on(type: 'descriptorRead', callback: Callback\<DescriptorReadRequest>): void… 804 …GattServer;<br>方法or属性:on(type: 'descriptorWrite', callback: Callback\<DescriptorWriteRequest>): vo… [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/ |
H A D | js-apis-bluetooth.md | 1123 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 D | js-apidiff-communication.md | 134 |新增|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| 1021 …GattServer;<br>方法or属性:interface GattServer<br>旧版本信息:|类名:GattServer;<br>方法or属性:interface GattServer… 1023 …GattServer;<br>方法or属性:stopAdvertising(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:stopAdvertising(… 1024 …GattServer;<br>方法or属性:addService(service: GattService): boolean;<br>旧版本信息:|类名:GattServer;<br>方法or属… 1025 …GattServer;<br>方法or属性:removeService(serviceUuid: string): boolean;<br>旧版本信息:|类名:GattServer;<br>方法o… 1026 …GattServer;<br>方法or属性:close(): void;<br>旧版本信息:|类名:GattServer;<br>方法or属性:close(): void;<br>新版本信息:9<… 1028 …GattServer;<br>方法or属性:sendResponse(serverResponse: ServerResponse): boolean;<br>旧版本信息:|类名:GattServ… 1031 …GattServer;<br>方法or属性:on(type: "descriptorRead", callback: Callback\<DescriptorReadReq>): void;<br… [all …]
|