- Fix bug where write callback was being called multiple times when write operations blocked
- [windows] refactored write code to be less complex
- [unix] refactored write code to be less complex
- added arduino required integration tests
- Errors should always be an error or null
- bindings.close doesn't throw with proper args so why are we catching?
- throw on update if given bad options
- support and test updating and opening with custom baud rates
- Migrate appveryor to powershell
- stop updating npm to latest
- start using the versions of the packages in our package.json
- stop download nodejs directly on travis
- Add back in the bundle dependency to support node 0.12 with npm3.
- bug fix in listUnix where we weren't filtering out non block devices that are named like serial ports
- Better unix error messages
- Better argument handling
- Switch to commander as optimist is deprecated
- more output formats for serial port list
- give serialportterm a list option
- Drop `bluebird` 168kb for `es6-promise` 37.1kb (vs 18.1kb library code) bundled sizes
- Move `node-pre-gyp-github` to dev deps so it's not always installed (5.8MB package size)
- Stop bundling `node-pre-gyp-github` as it's only needed during publishing
- Test requiring the library as part of the build processes on all platforms
- move all js code into ./lib
- move all the easy stuff into ./lib/bindings the rest will bring breaking changes probably
We had ambiguous behavior and documentation around these settings and functions, this preserves all of the previous behavior and defines it in documentation and tests. This is a step towards separating out and cleaning up user supplied options to the constructor.
- Refactor to fix bugs
- Remove the path behind `udevadm` as it’s not always in the same place but it’s so far it is always in the path
- Tests listUnix, (`pnpId` assumes a lot about `udevadm` =( )
- Adds `ttyMDF` to the list of serial ports for “High Speed UART device of Intel Medfield platform”
- turn down the verboseness on appveyor nam installs
- upgrade sandboxed-module for windows support
Fixes#650, #651, #634, #697 and #621
This patch combines #586 and #686
- A closed serialport now uses fd = null
- Emulate a proper fd in mock hardware
- Instead of using the device path as the file descriptor, use a generated
integer as the fd.
This have to use a starting fd of 1 as there are bugs when the fd is 0.
The open(2) manpage states that the file descriptor will be a small
nonnegative integer.
Checking if the fd is falsey leads to the incorrect classification of the
fd 0 as invalid. That is not the case, open(2) specifies the fd as "a
small, nonnegative integer".
This also adds tests for all the cases where the fd was previously
incorrectly considered invalid, which required adding three more methods
to the mock-hardware (update, set and drain).
This solves issue #472