Fix foundation error from #8433571

This commit is contained in:
Viet Dzung 2018-09-14 10:01:07 +07:00
parent 6ede5a373e
commit 469a01ebb6

View File

@ -192,7 +192,7 @@ class Zigbee {
logger.info(`Zigbee publish to '${deviceID}', ${cid} - ${cmd} - ${JSON.stringify(zclData)} - ${ep}`);
device[type](cid, cmd, zclData, (error) => {
device[type](cid, cmd, [zclData], (error) => {
if (error) {
logger.error(
`Zigbee publish to '${deviceID}', ${cid} - ${cmd} - ${JSON.stringify(zclData)} - ${ep} ` +