simplejsble 0.0.50 → 0.0.51
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/apple/SimpleBLE.xcframework/Info.plist +4 -4
- package/apple/SimpleBLE.xcframework/ios-arm64/libsimpleble.a +0 -0
- package/apple/SimpleBLE.xcframework/ios-arm64-simulator/libsimpleble.a +0 -0
- package/apple/SimpleBLE.xcframework/macos-arm64_x86_64/libsimpleble.a +0 -0
- package/cpp/HybridPeripheral.cpp +3 -3
- package/cpp/HybridPeripheral.hpp +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-arm64
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libsimpleble.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
</array>
|
|
20
20
|
<key>SupportedPlatform</key>
|
|
21
21
|
<string>ios</string>
|
|
22
|
-
<key>SupportedPlatformVariant</key>
|
|
23
|
-
<string>simulator</string>
|
|
24
22
|
</dict>
|
|
25
23
|
<dict>
|
|
26
24
|
<key>BinaryPath</key>
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
<key>HeadersPath</key>
|
|
29
27
|
<string>Headers</string>
|
|
30
28
|
<key>LibraryIdentifier</key>
|
|
31
|
-
<string>ios-arm64</string>
|
|
29
|
+
<string>ios-arm64-simulator</string>
|
|
32
30
|
<key>LibraryPath</key>
|
|
33
31
|
<string>libsimpleble.a</string>
|
|
34
32
|
<key>SupportedArchitectures</key>
|
|
@@ -37,6 +35,8 @@
|
|
|
37
35
|
</array>
|
|
38
36
|
<key>SupportedPlatform</key>
|
|
39
37
|
<string>ios</string>
|
|
38
|
+
<key>SupportedPlatformVariant</key>
|
|
39
|
+
<string>simulator</string>
|
|
40
40
|
</dict>
|
|
41
41
|
<dict>
|
|
42
42
|
<key>BinaryPath</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cpp/HybridPeripheral.cpp
CHANGED
|
@@ -93,12 +93,12 @@ std::vector<std::shared_ptr<HybridServiceSpec>> HybridPeripheral::services() {
|
|
|
93
93
|
return hybrid_services;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
std::unordered_map<
|
|
96
|
+
std::unordered_map<int, std::shared_ptr<ArrayBuffer>> HybridPeripheral::manufacturer_data() {
|
|
97
97
|
std::map<uint16_t, SimpleBLE::ByteArray> peripheral_manufacturer_data = _peripheral.manufacturer_data();
|
|
98
|
-
std::unordered_map<
|
|
98
|
+
std::unordered_map<int, std::shared_ptr<ArrayBuffer>> manufacturer_array_buffer_map;
|
|
99
99
|
|
|
100
100
|
for (const auto& pair : peripheral_manufacturer_data) {
|
|
101
|
-
manufacturer_array_buffer_map[static_cast<
|
|
101
|
+
manufacturer_array_buffer_map[static_cast<int>(pair.first)] = toArrayBuffer(pair.second);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
return manufacturer_array_buffer_map;
|
package/cpp/HybridPeripheral.hpp
CHANGED
|
@@ -38,7 +38,7 @@ class HybridPeripheral : public HybridPeripheralSpec {
|
|
|
38
38
|
void set_callback_on_disconnected(const std::function<void()>& callback) override;
|
|
39
39
|
|
|
40
40
|
std::vector<std::shared_ptr<HybridServiceSpec>> services() override;
|
|
41
|
-
std::unordered_map<
|
|
41
|
+
std::unordered_map<int, std::shared_ptr<ArrayBuffer>> manufacturer_data() override;
|
|
42
42
|
|
|
43
43
|
std::shared_ptr<ArrayBuffer> read(const std::string& service, const std::string& characteristic) override;
|
|
44
44
|
void write_request(const std::string& service, const std::string& characteristic, const std::shared_ptr<ArrayBuffer>& data) override;
|