Skip to content

Commit

Permalink
Version 0.6.0
Browse files Browse the repository at this point in the history
  * Allow to reuse same UDP address
  * Socket events on `Bus` instance
  * Enable UDP broadcast
  * Add address getter to `Device` instance
  * New API functions signature
  * Sender device decoupled from `Bus` class
  * Events on `Device` provides command object as a payload
  * `Channel` DSL removed
  * Keep command payload
  * Fix channels info for scene status commands (`0x0003`, `0xEFFF`)
  * Fix parsing of "Response Read Sensors Status" (`0x1605`)
  * Add Panel buttons control commands (`0xE012`, `0xE14E`)
  * Add AC Control commands (`0x193A`, `0x193B`)

**BREAKING:**

  - `bus.device()`, `bus.send()` and `device.send()` functions
    have new signature;
  - `device.send()` method now sends command **from** device
    to target;

    Refer to [`Send commands`](README.md#send-commands)
    readme section for details.

  - Now `Bus` object represents only and udp socket,
    sender device could be any device and must be initalized
    separately;

    Refer to [`Initialization`](README.md#initialization)
    readme section for details.

  - Events on `Device` instance have same payload as events on `Bus`;

  - `device.channel()` abstraction removed, listen for events manually;

    Refer to [`Complete example`](README.md#complete-example)
    readme section for details.
  • Loading branch information
caligo-mentis committed Mar 1, 2020
1 parent 47edda1 commit fbadb99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## master
## 0.6.0

* Allow to reuse same UDP address
* Socket events on `Bus` instance
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smart-bus",
"version": "0.5.2",
"version": "0.6.0",
"license": "MIT",
"description": "Node.js implementation of HDL SmartBus protocol",
"repository": "caligo-mentis/smart-bus",
Expand Down

0 comments on commit fbadb99

Please sign in to comment.