advlib-ble-services
Advanced tools
Comparing version 1.0.0 to 1.0.1
/** | ||
* Copyright reelyActive 2015-2020 | ||
* Copyright reelyActive 2015-2021 | ||
* We believe in an open Internet of Things | ||
@@ -27,2 +27,3 @@ */ | ||
const VISIBLE_LIGHT_MASK = 0x01; | ||
const MINEW_URI = "https://sniffypedia.org/Organization/Shenzhen_Minew_Technologies_Co_Ltd/"; | ||
@@ -81,3 +82,3 @@ | ||
return { batteryPercentage: batteryPercentage, temperature: temperature, | ||
relativeHumidity: relativeHumidity }; | ||
relativeHumidity: relativeHumidity, uri: MINEW_URI }; | ||
} | ||
@@ -102,3 +103,3 @@ | ||
return { batteryPercentage: batteryPercentage, | ||
isVisibleLight: isVisibleLight }; | ||
isVisibleLight: isVisibleLight, uri: MINEW_URI }; | ||
} | ||
@@ -125,3 +126,4 @@ | ||
return { batteryPercentage: batteryPercentage, acceleration: acceleration }; | ||
return { batteryPercentage: batteryPercentage, acceleration: acceleration, | ||
uri: MINEW_URI }; | ||
} | ||
@@ -144,3 +146,3 @@ | ||
return { batteryPercentage: batteryPercentage, name: name }; | ||
return { batteryPercentage: batteryPercentage, name: name, uri: MINEW_URI }; | ||
} | ||
@@ -147,0 +149,0 @@ |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"engines": { | ||
@@ -21,0 +21,0 @@ "node": ">=6.0.0" |
@@ -24,15 +24,19 @@ /** | ||
temperature: 21.5, | ||
relativeHumidity: 50.0 | ||
relativeHumidity: 50.0, | ||
uri: "https://sniffypedia.org/Organization/Shenzhen_Minew_Technologies_Co_Ltd/" | ||
}; | ||
const EXPECTED_DATA_VISIBLE_LIGHT = { | ||
batteryPercentage: 69, | ||
isVisibleLight: true | ||
isVisibleLight: true, | ||
uri: "https://sniffypedia.org/Organization/Shenzhen_Minew_Technologies_Co_Ltd/" | ||
}; | ||
const EXPECTED_DATA_ACCELERATION = { | ||
batteryPercentage: 100, | ||
acceleration: [ -0.5, 0.0, 0.5 ] | ||
acceleration: [ -0.5, 0.0, 0.5 ], | ||
uri: "https://sniffypedia.org/Organization/Shenzhen_Minew_Technologies_Co_Ltd/" | ||
}; | ||
const EXPECTED_DATA_NAME = { | ||
batteryPercentage: 1, | ||
name: "PLUS" | ||
name: "PLUS", | ||
uri: "https://sniffypedia.org/Organization/Shenzhen_Minew_Technologies_Co_Ltd/" | ||
}; | ||
@@ -39,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26462
608