[ZWay JS API] each Set() triggering a corresponding Get ?
Posted: 03 Nov 2014 00:29
Hi,
I am experimenting with the JS API, and I noticed in the logs that when I perform an action like:
I properly see the z-wave frame being sent to set value to 0 on the switch node,
But for this same unique Set() call, there is also systematically a corresponding "Get" being performed by the Z-way server immediately after:
Is this done on purpose ? Since every (non-broadcast) Z-wave frame is acknowlegded, I don't see the need for reading values immediately after setting them on the node, especially since it doubles the traffic on the network.
Can anyone shed some light on this ?
Thanks !
I am experimenting with the JS API, and I noticed in the logs that when I perform an action like:
Code: Select all
zway.devices[9].instances[0].SwitchBinary.Set(0);
Code: Select all
[2014-11-02 22:07:00.519] Job 0x13 (SwitchBinary Set): Delivered
[2014-11-02 22:07:00.519] SETDATA devices.9.data.lastPacketInfo.delivered = True
[2014-11-02 22:07:00.519] SETDATA devices.9.data.lastPacketInfo.packetLength = 6 (0x00000006)
[2014-11-02 22:07:00.520] SETDATA devices.9.data.lastPacketInfo.deliveryTime = 78 (0x0000004e)
[2014-11-02 22:07:00.520] SETDATA devices.9.data.lastPacketInfo = **********
[2014-11-02 22:07:00.520] SendData Response with callback 0x46 received: received by recipient
[2014-11-02 22:07:00.520] SETDATA devices.9.data.lastSend = 1323420 (0x0014319c)
[2014-11-02 22:07:00.520] Job 0x13 (SwitchBinary Set): success
[2014-11-02 22:07:00.520] Removing job: SwitchBinary Set
Code: Select all
[2014-11-02 22:07:00.698] Job 0x13 (SwitchBinary Get): Delivered
[2014-11-02 22:07:00.698] SETDATA devices.9.data.lastPacketInfo.delivered = True
[2014-11-02 22:07:00.698] SETDATA devices.9.data.lastPacketInfo.packetLength = 5 (0x00000005)
[2014-11-02 22:07:00.698] SETDATA devices.9.data.lastPacketInfo.deliveryTime = 55 (0x00000037)
[2014-11-02 22:07:00.698] SETDATA devices.9.data.lastPacketInfo = **********
[2014-11-02 22:07:00.699] SendData Response with callback 0x49 received: received by recipient
[2014-11-02 22:07:00.699] SETDATA devices.9.data.lastSend = 1323435 (0x001431ab)
[2014-11-02 22:07:00.699] Job 0x13 (SwitchBinary Get): success
[2014-11-02 22:07:00.699] Removing job: SwitchBinary Get
Can anyone shed some light on this ?
Thanks !