Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Problem #6

Open
SaminaZahidFulda opened this issue May 21, 2019 · 1 comment
Open

Run Problem #6

SaminaZahidFulda opened this issue May 21, 2019 · 1 comment

Comments

@SaminaZahidFulda
Copy link

how to test this ?

@antonmeyer
Copy link

your question is very generic, but I agree, I also had a hard time to figure out where to start.
I took this one:
var WMBUS = require('wm-bus').WMBUS;
var wmb = new WMBUS( {
log: {
debug: console.log, //
error: console.log
}
});
wmb.crcRemoved = true;
//wmb.addAESKey(/* id / '00051713', / aes-key */ '0000000000000000');
wmb.decrypted = 1;
var data = '3c449344568873352137720680546693442104550000200c05183604004c0560630100426c5f2ccc080562090400c2086c7f2a326cffff046d160d772b';
wmb.parseHex ( data);

wmb.datablocks.forEach(function (data) {
console.log(JSON.stringify(data));
});

and crashed into an error
xception has occurred: ReferenceError
ReferenceError: uc is not defined
at WMBUS.decodeApplicationLayer .....node_modules/wm-bus/lib/wmbus-decoder.js:1508:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants