Home
last modified time | relevance | path

Searched refs:gattServer (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
H A Dnapi_bluetooth_gatt_server.cpp81 env, thisVar, gattServer, in GattServerConstructor()
94 delete gattServer; in GattServerConstructor()
95 gattServer = nullptr; in GattServerConstructor()
103 NapiGattServer *gattServer = nullptr; in NapiGetGattServer() local
108 return gattServer; in NapiGetGattServer()
156 outServer = gattServer->GetServer(); in CheckGattsAddService()
199 outServer = gattServer->GetServer(); in CheckGattsClose()
229 outServer = gattServer->GetServer(); in CheckGattsRemoveService()
271 outServer = gattServer->GetServer(); in CheckGattsSendRsp()
324 *outServer = gattServer; in CheckNotifyCharacteristicChangedEx()
[all …]
/ohos5.0/docs/zh-cn/application-dev/connectivity/bluetooth/
H A Dgatt-development-guide.md62 3. 连接gattServer
63 4. 读取gattServer的特征值和描述符。
64 5. 向gattServer写入特征值和描述符。
359 2. 创建gattServer实例对象。
363 6. 注销gattServer实例。
416 if (!this.gattServer) {
460 this.gattServer = ble.createGattServer(); // 2.1 构造gattServer,后续的交互都需要使用该实例
470 if (!this.gattServer) {
507 if (!this.gattServer) {
544 if (!this.gattServer) {
[all …]
/ohos5.0/docs/en/application-dev/connectivity/bluetooth/
H A Dgatt-development-guide.md362 2. Create a **gattServer** object.
366 6. Close the gattServer instance.
378 gattServer: ble.GattServer = undefined;
420 if (!this.gattServer) {
421 console.error(TAG, 'no gattServer');
474 if (!this.gattServer) {
511 if (!this.gattServer) {
548 if (!this.gattServer) {
585 if (!this.gattServer) {
622 if (!this.gattServer) {
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md50 let gattServer: ble.GattServer = ble.createGattServer();
1394 gattServer.addService(gattService);
1651 gattServer.sendResponse(serverResponse);
1704 gattServer.sendResponse(serverResponse);
1748 gattServer.off('characteristicRead');
1804 gattServer.sendResponse(serverResponse);
1848 gattServer.off('characteristicWrite');
1945 gattServer.off('descriptorRead');
2045 gattServer.off('descriptorWrite');
2134 gattServer.off('connectionStateChange');
[all …]
H A Djs-apis-bluetooth.md1789 gattServer.startAdvertising(setting, advData, advResponse);
1871 let ret : boolean = gattServer.addService(gattService);
2080 gattServer.on("characteristicRead", ReadCharacteristicReq);
2112 gattServer.off("characteristicRead");
2199 gattServer.off("characteristicWrite");
2251 gattServer.on("descriptorRead", ReadDescriptorReq);
2283 gattServer.off("descriptorRead");
2337 gattServer.on("descriptorWrite", WriteDescriptorReq);
2369 gattServer.off("descriptorWrite");
2406 gattServer.on("connectStateChange", Connected);
[all …]
H A Djs-apis-bluetoothManager.md2795 gattServer.addService(gattService);
2996 gattServer.sendResponse(serverResponse);
3049 gattServer.sendResponse(serverResponse);
3096 gattServer.off("characteristicRead");
3152 gattServer.sendResponse(serverResponse);
3199 gattServer.off("characteristicWrite");
3252 gattServer.sendResponse(serverResponse);
3299 gattServer.off("descriptorRead");
3402 gattServer.off("descriptorWrite");
3449 gattServer.on("connectStateChange", Connected);
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md37 let gattServer: ble.GattServer = ble.createGattServer();
1381 gattServer.addService(gattService);
1638 gattServer.sendResponse(serverResponse);
1691 gattServer.sendResponse(serverResponse);
1735 gattServer.off('characteristicRead');
1791 gattServer.sendResponse(serverResponse);
1835 gattServer.off('characteristicWrite');
1932 gattServer.off('descriptorRead');
2032 gattServer.off('descriptorWrite');
2121 gattServer.off('connectionStateChange');
[all …]
H A Djs-apis-bluetooth.md1790 gattServer.startAdvertising(setting, advData, advResponse);
1872 let ret : boolean = gattServer.addService(gattService);
2081 gattServer.on("characteristicRead", ReadCharacteristicReq);
2113 gattServer.off("characteristicRead");
2200 gattServer.off("characteristicWrite");
2252 gattServer.on("descriptorRead", ReadDescriptorReq);
2284 gattServer.off("descriptorRead");
2338 gattServer.on("descriptorWrite", WriteDescriptorReq);
2370 gattServer.off("descriptorWrite");
2407 gattServer.on("connectStateChange", Connected);
[all …]
H A Djs-apis-bluetoothManager.md2795 gattServer.addService(gattService);
2996 gattServer.sendResponse(serverResponse);
3049 gattServer.sendResponse(serverResponse);
3096 gattServer.off("characteristicRead");
3152 gattServer.sendResponse(serverResponse);
3199 gattServer.off("characteristicWrite");
3252 gattServer.sendResponse(serverResponse);
3299 gattServer.off("descriptorRead");
3402 gattServer.off("descriptorWrite");
3449 gattServer.on("connectStateChange", Connected);
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/
H A DgattInterface.ets24 const PAGE_URI_GET_GATT_SERVER = 'pages/subManualApiTest/subGattTest/gattServer';
H A DtestDataModels.ets376 'url' : 'pages/subManualApiTest/subGattTest/gattServer' ,
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_server.cpp118 std::shared_ptr<GattServer> gattServer = nullptr; member
134 #define GATTSERVER(x) g_gattServers[x].gattServer