Skip to content

Commit b61c90f

Browse files
committed
examples: copy to root
1 parent 4fafd4a commit b61c90f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/quickstart/simple-coffee-machine.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ servient.addServer(
2424
port: 8081,
2525
})
2626
);
27+
core_1.Helpers.setStaticAddress("plugfest.thingweb.io"); // comment this out if you are testing locally
2728
let waterAmount = 100;
2829
let beansAmount = 100;
2930
let milkAmount = 100;

examples/quickstart/smart-clock.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const binding_coap_1 = require("@node-wot/binding-coap");
1919
// create Servient add CoAP binding with port configuration
2020
const servient = new core_1.Servient();
2121
servient.addServer(new binding_coap_1.CoapServer(5685));
22+
core_1.Helpers.setStaticAddress("plugfest.thingweb.io"); // comment this out if you are testing locally
2223
let minuteCounter = 0;
2324
let hourCounter = 0;
2425
async function timeCount(thing) {

0 commit comments

Comments
 (0)