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

double() and float() no longer available #130

Open
danni opened this issue Nov 18, 2019 · 1 comment
Open

double() and float() no longer available #130

danni opened this issue Nov 18, 2019 · 1 comment

Comments

@danni
Copy link

danni commented Nov 18, 2019

The double() and float() that follow endianness have gone missing in binary-parser > 1.3.2

@danni
Copy link
Author

danni commented Nov 18, 2019

Here's an example that no longer works:

const SAMPLE = new Parser()
  .endianess('little')
  .int32('sampleTimeSec')
  .uint16('sampleTimeMS')
  .uint16('gpsFixFlags')
  .double('lat')
  .double('lng')
  .float('ele')
  .float('speed')
  .uint16('pdop')
  .uint16('hdop')
  .uint16('vdop')
  .skip(1)
  .uint8('sat')
  .uint16('bearing')

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

1 participant