Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 committed Mar 1, 2024
1 parent 5520a97 commit 008b1f5
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 568 deletions.
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"sources": [
"./src/node_snap7.cpp",
"./src/node_snap7_client.cpp",
#"./src/node_snap7_server.cpp",
"./src/node_snap7_server.cpp",
"./src/snap7.cpp"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "NAPI_EXPERIMENTAL"],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
"conditions": [
["OS=='win'", {
"libraries": ["-lws2_32.lib", "-lwinmm.lib"],
Expand Down
4 changes: 2 additions & 2 deletions lib/node-snap7.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ snap7.S7Client.prototype.CTWrite = async function (start, size, buf) {
return this.WriteArea(this.S7AreaCT, 0, start, size, this.S7WLCounter, buf);
}

//snap7.S7Server.super_ = events.EventEmitter;
//bject.setPrototypeOf(snap7.S7Server.prototype, events.EventEmitter.prototype);
snap7.S7Server.super_ = events.EventEmitter;
Object.setPrototypeOf(snap7.S7Server.prototype, events.EventEmitter.prototype);
4 changes: 2 additions & 2 deletions src/node_snap7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
*/

#include <node_snap7_client.h>
//#include <node_snap7_server.h>
#include <node_snap7_server.h>

namespace node_snap7 {

Napi::Object InitAll(Napi::Env env, Napi::Object exports) {
S7Client::Init(env, exports);
//S7Server::Init(env, exports);
S7Server::Init(env, exports);

return exports;
}
Expand Down
Loading

0 comments on commit 008b1f5

Please sign in to comment.