We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Library works great, thanks for the pointer :)
The code would be clearer in constants.js if you did this instead of having placeholder 0x00 bytes that are later changed
eg
function getStartMeasurementCommand(channelMask) { return [ 0x18, 0xff, 0x01, (channelMask >> 0) & 0xff, (channelMask >> 8) & 0xff, (channelMask >> 16) & 0xff, (channelMask >> 24) & 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ]; } const STOP_MEASUREMENTS = [0x19, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff]; function getMeasurementPeriodCommand(measurementPeriodInMicroseconds) { // 32 + (161<<8) + (7<<16) + (0<<24) = 500,000 microseconds return [ 0x1b, 0xff, 0x00, (measurementPeriodInMicroseconds >> 0) & 0xff, // eg 32 (measurementPeriodInMicroseconds >> 8) & 0xff, // eg 161 (measurementPeriodInMicroseconds >> 16) & 0xff, // eg 7 (measurementPeriodInMicroseconds >> 24) & 0xff, //eg 0 0x00, 0x00, 0x00, 0x00, ]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Library works great, thanks for the pointer :)
The code would be clearer in constants.js if you did this instead of having placeholder 0x00 bytes that are later changed
eg
The text was updated successfully, but these errors were encountered: