Closed treban closed 5 years ago
Looks like the problem is with the library used so I can't do much about it...
20:52:03.450 [pimatic]> at encrypt (/opt/pimatic-docker/node_modules/pimatic-tplink-smartplug/node_modules/tplink-smarthome-api/node_modules/**tplink-smarthome-crypto**/lib/index.js:17:20)
Others are not having the problem so I would suggest to update tó the latest version of node which is supported.
Thanks for the reply. which node version do you use? i'm running pimatic in a docker container. i'll see if i can install a newer 4.x version of node.
buffer.from was probably introduced with node 6.0. https://nodejs.org/docs/v6.0.0/api/buffer.html#buffer_buffer_from_buffer_alloc_and_buffer_allocunsafe
with version v4.9.1 is all OK. THX
After update i get an error:
TypeError: this is not a typed array.
generated from here: https://github.com/plasticrake/tplink-smarthome-crypto/blob/master/lib/index.js#L17
my research says maybe node version
my version is v4.2.6
@mwittig do you have a hint?