Releases: chuank/node-red-contrib-particle
Releases · chuank/node-red-contrib-particle
v1.20: utility node enhancements
v1.1.0: SSE disconnect fix
As reported in #16, SSEs will disconnect after a long period of time, or more particularly when client drops out from a network and does not automatically reconnect.
Two workarounds are applied:
- Added listener to reconnect when stream ends
- Added a keepalive interval to force reconnects every 5 minutes – this should ensure SSEs remain connected even if above stream end event does not fire
v1.0.3
v1.0.2
SSE: remove URI encoding from event name
Changelog
- merged PR #15
v1.0.0: Particle JS API + Product support
- Adopts the Particle JS API
- Product support (use Device ID instead of Device name)
- New Utility node now provides handy utilities:
- listDevices
- getDevice
- signalDevice
- Verbose Logging option no more (see Breaking Changes below)
- Node names shortened
- Node label appearances do not change when node properties are dynamically updated by upstream messages
- Removed debug comment that exposes access token in logs (!)
BREAKING CHANGES:
- Node name changes – your existing Particle nodes will need to be set up again. Sorry.
- For consistency with Particle JS API, nodes now directly pass the returned result from Particle as a JSON object
- Verbose Logging removed – adopting Node-RED's logging system to provide trace/debug/log details
- ParticlePublish 'shortcut' mode changed: passing in message with payload and no topic will set new data parameter into ParticlePublish node and trigger the event
TODO:
- Webhooks
- Utility node is currently meant for information retreival; in the future it might provide options to edit device names, claim/unclaim, access token access