@stoprocent/bleno 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/mac/src/bleno_mac.h
CHANGED
|
@@ -8,7 +8,7 @@ class BlenoMac : public Napi::ObjectWrap<BlenoMac>
|
|
|
8
8
|
public:
|
|
9
9
|
BlenoMac(const Napi::CallbackInfo&);
|
|
10
10
|
Napi::Value Init(const Napi::CallbackInfo&);
|
|
11
|
-
Napi::Value
|
|
11
|
+
Napi::Value Stop(const Napi::CallbackInfo&);
|
|
12
12
|
|
|
13
13
|
Napi::Value StartAdvertising(const Napi::CallbackInfo&);
|
|
14
14
|
Napi::Value StartAdvertisingIBeacon(const Napi::CallbackInfo&);
|
package/lib/mac/src/bleno_mac.mm
CHANGED
|
@@ -52,9 +52,8 @@ Napi::Value BlenoMac::Init(const Napi::CallbackInfo& info) {
|
|
|
52
52
|
return info.Env().Undefined();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
Napi::Value BlenoMac::
|
|
55
|
+
Napi::Value BlenoMac::Stop(const Napi::CallbackInfo& info) {
|
|
56
56
|
CHECK_MANAGER()
|
|
57
|
-
CFRelease((__bridge CFTypeRef)peripheralManager);
|
|
58
57
|
peripheralManager = nil;
|
|
59
58
|
return info.Env().Undefined();
|
|
60
59
|
}
|
|
@@ -135,7 +134,7 @@ Napi::Value BlenoMac::UpdateRssi(const Napi::CallbackInfo& info) {
|
|
|
135
134
|
Napi::Function BlenoMac::GetClass(Napi::Env env) {
|
|
136
135
|
return DefineClass(env, "BlenoMac", {
|
|
137
136
|
BlenoMac::InstanceMethod("init", &BlenoMac::Init),
|
|
138
|
-
BlenoMac::InstanceMethod("
|
|
137
|
+
BlenoMac::InstanceMethod("stop", &BlenoMac::Stop),
|
|
139
138
|
BlenoMac::InstanceMethod("startAdvertising", &BlenoMac::StartAdvertising),
|
|
140
139
|
BlenoMac::InstanceMethod("startAdvertisingIBeacon", &BlenoMac::StartAdvertisingIBeacon),
|
|
141
140
|
BlenoMac::InstanceMethod("startAdvertisingWithEIRData", &BlenoMac::StartAdvertisingWithEIRData),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoprocent/bleno",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"node-gyp-build": "^4.8.4"
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|
|
72
|
-
"@stoprocent/bluetooth-hci-socket": "^2.2.
|
|
72
|
+
"@stoprocent/bluetooth-hci-socket": "^2.2.1"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|