Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wi-sunモジュールでstartDiscovery時にException発生 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

wi-sunモジュールでstartDiscovery時にException発生 #6

wants to merge 1 commit into from

Conversation

mnakada
Copy link

@mnakada mnakada commented Jan 30, 2017

状況: wi-sunモジュールを使用してSmrtMeterをstartDiscoveryで検索する時
_activeScanの中で”EVENT 22”を受けたときの処理でthis.SERIAL_SEND_INTERVALでstartDiscoveryを再度呼び出す処理があるが、startDiscoveryの第1引数が抜けているためExceptionが発生している。

対応:activeScanにbufを渡して、startDiscovery呼び出し時にbufを使用するように変更。

以下、発生したException

[[ Exception ]]
Mon Jan 30 2017 22:03:22 GMT+0900 (JST)
TypeError: "list" argument must be an Array of Buffers
at Function.Buffer.concat (buffer.js:314:13)
at EchonetLiteNetWisunbAdapter.createBufferSKSENDTO (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb-bp35a1.js:29:23)
at EchonetLiteNetWisunb.send (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:429:33)
at Timeout.setTimeout (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:286:10)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
TypeError: "list" argument must be an Array of Buffers
at Function.Buffer.concat (buffer.js:314:13)
at EchonetLiteNetWisunbAdapter.createBufferSKSENDTO (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb-bp35a1.js:29:23)
at EchonetLiteNetWisunb.send (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:429:33)
at Timeout.setTimeout (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:286:10)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)

状況: wi-sunモジュールを使用してSmrtMeterをstartDiscoveryで検索する時
_activeScanの中で”EVENT 22”を受けたときの処理でthis.SERIAL_SEND_INTERVALでstartDiscoveryを再度呼び出す処理があるが、startDiscoveryの第1引数が抜けているためExceptionが発生している。

対応:activeScanにbufを渡して、startDiscovery呼び出し時にbufを使用するように変更。

[[ Exception ]]
Mon Jan 30 2017 22:03:22 GMT+0900 (JST)
TypeError: "list" argument must be an Array of Buffers
at Function.Buffer.concat (buffer.js:314:13)
at EchonetLiteNetWisunbAdapter.createBufferSKSENDTO (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb-bp35a1.js:29:23)
at EchonetLiteNetWisunb.send (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:429:33)
at Timeout.setTimeout (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:286:10)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
TypeError: "list" argument must be an Array of Buffers
at Function.Buffer.concat (buffer.js:314:13)
at EchonetLiteNetWisunbAdapter.createBufferSKSENDTO (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb-bp35a1.js:29:23)
at EchonetLiteNetWisunb.send (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:429:33)
at Timeout.setTimeout (/home/test/wisun_test/node_modules/node-echonet-lite/lib/net/wisunb.js:286:10)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant