mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

S7Server.LastError is not a function #26

Closed gustavo-oliveira-mendonca closed 7 years ago

gustavo-oliveira-mendonca commented 7 years ago

In the documentation of the server is described:

S7Server.LastError()

Returns the last job result.

Trying to call var err = S7Server.LastError() raises the error:

TypeError: S7Server.LastError is not a function

mathiask88 commented 7 years ago

Oh, yes you are right. I missed a line of code to register that function to node.js 😆 I will patch it tomorrow, thanks!

mathiask88 commented 7 years ago

fixed in https://github.com/mathiask88/node-snap7/commit/b9ea936f777872a2eff583b4cfe95c757bf9af8e