@mschaeffler/node-red-bthome 1.3.0 → 1.4.1
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/bthome.js +3 -3
- package/package.json +1 -1
package/bthome.js
CHANGED
|
@@ -4,7 +4,7 @@ const Rawdata = require( "./rawdata.js" );
|
|
|
4
4
|
const BtEvent = require( "./btevent.js" );
|
|
5
5
|
|
|
6
6
|
class TypeIds {
|
|
7
|
-
static bluDW =
|
|
7
|
+
static bluDW = 2;
|
|
8
8
|
static bluRemote = 9;
|
|
9
9
|
}
|
|
10
10
|
Object.freeze( TypeIds );
|
|
@@ -266,7 +266,7 @@ module.exports = function(RED) {
|
|
|
266
266
|
setData( "channel", rawdata.getUInt8() + 1 );
|
|
267
267
|
break;
|
|
268
268
|
case 0xF0:
|
|
269
|
-
item.typeId = rawdata.getUInt16();
|
|
269
|
+
item.typeId = rawdata.getUInt16() & 0xFF;
|
|
270
270
|
break;
|
|
271
271
|
case 0xF1:
|
|
272
272
|
item.version = {
|
|
@@ -297,7 +297,7 @@ module.exports = function(RED) {
|
|
|
297
297
|
|
|
298
298
|
function checkPid()
|
|
299
299
|
{
|
|
300
|
-
if( pid < item.pid && pid >
|
|
300
|
+
if( pid < item.pid && pid > 16 )
|
|
301
301
|
{
|
|
302
302
|
// veraltete Nachricht und nicht reboot
|
|
303
303
|
node.statistics.old++;
|