Skip to content

Commit b9ea936

Browse files
committed
adds missing method S7Server.LastError()
1 parent ec9e87e commit b9ea936

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/node_snap7_server.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ NAN_MODULE_INIT(S7Server::Init) {
121121
tpl
122122
, "ErrorText"
123123
, S7Server::ErrorText);
124+
Nan::SetPrototypeMethod(
125+
tpl
126+
, "LastError"
127+
, S7Server::LastError);
124128
Nan::SetPrototypeMethod(
125129
tpl
126130
, "EventText"

0 commit comments

Comments
 (0)