react-native-flic2 2.0.0-beta.12 → 2.0.0-beta.13

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.
@@ -51,7 +51,7 @@ class Flic2ButtonEventListener(
51
51
  // - Age is in seconds
52
52
  // - Only meaningful for queued events; 0 for real-time events
53
53
  val ageSeconds = if (wasQueued) {
54
- (button.readyTimestamp - timestamp) / 1000.0
54
+ (button.getReadyTimestamp() - timestamp) / 1000.0
55
55
  } else {
56
56
  0.0
57
57
  }
@@ -106,7 +106,7 @@ class Flic2ButtonEventListener(
106
106
  // - Age is in seconds
107
107
  // - Only meaningful for queued events; 0 for real-time events
108
108
  val ageSeconds = if (wasQueued) {
109
- (button.readyTimestamp - timestamp) / 1000.0
109
+ (button.getReadyTimestamp() - timestamp) / 1000.0
110
110
  } else {
111
111
  0.0
112
112
  }
@@ -16,9 +16,6 @@ object Flic2Converter {
16
16
  putString("bluetoothAddress", button.getBdAddr() ?: "")
17
17
  putString("serialNumber", button.getSerialNumber() ?: "")
18
18
 
19
- // ready timestamp
20
- putLong("readyTimestamp", button.getReadyTimestamp())
21
-
22
19
  // Use connection state constants instead of enum
23
20
  val connState = button.getConnectionState()
24
21
  putInt("state", connectionStateToInt(connState))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-flic2",
3
- "version": "2.0.0-beta.12",
3
+ "version": "2.0.0-beta.13",
4
4
  "description": "React Native Flic plugin made with the Flic2 SDK (unofficial)",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",