Releases: guymcswain/pigpio-client
Releases · guymcswain/pigpio-client
Add hardware PWM API
1.4.0 Bump semver to 1.4.0
Promise support
New Feature
- All APIs now support async/await and promises
API - New
gpio.waveTxStop(cb)
Aborts the transmission of the current waveform.
This function is intended to stop a waveform started in repeat mode.waveTxStop
API - Enhancement
gpio.waveChainTx([{loop:x}, {waves: [wids]}, {delay:y}, {repeat:z}], cb)
gpioWaveChain
Transmit a chain of waves represented by array of wave IDs[wids]
. The chain can have loops, be separated by delays and repeated by inclusion of option objects.- loop : x, begins a loop. x can be anything
- delay: y, insert of delay of y=0 to 65535 microseconds
- repeat: z, repeat loop z=0 to 65535 times or forever if z=true
Auto reconnect and other improvements
Improvements
- Automatic network socket reconnection on startup (available in autoreconnect branch)
- Dead network socket peer detection with 'disconnected' event (available in autoreconnect branch)
- Pigpio errors returned with descriptive text strings
- Debug messages enabled through environment variable
*Add version to info object
Patches
- Public API updated to reduce ambiguity.
- Code base changes to conform to public API.
- Fix gpio.notify updates current level only on first call.
- Fix exception thrown when gpio.endNotify is called without a callback.
- Fix to update current gpio levels when restarting notifications.
- Fix pigpio info properties not initialized before 'connected' event.
Initial release
Initial release published to NPM. Use with caution! Readme is missing 'connected' event and contains errors in some API descriptions. There are bugs in serial port also so wait for 1.0.1 patch version forthcoming.