Skip to content

Commit cd94fd3

Browse files
author
Bumsik Lee
committed
MQTT to coap
1 parent 6fe1fd1 commit cd94fd3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

demoApp.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function demoApp() {
221221
});
222222

223223
cnode1.on("registered", function() {
224-
console.log(">> MQTT cnode1 node is registered to a server");
224+
console.log(">> coap cnode1 node is registered to a server");
225225
var so = cnode1.getSmartObject();
226226
//so.read("lwm2mSecurity", function(err, data) {
227227
// if (!err) console.log(data); // { '0':
@@ -244,11 +244,11 @@ function demoApp() {
244244
});
245245

246246
cnode1.on("login", function() {
247-
console.log(">> MQTT cnode1 node logs in the network");
247+
console.log(">> coap cnode1 node logs in the network");
248248
});
249249

250250
cnode1.on("logout ", function() {
251-
console.log(">> MQTT cnode1 node logs out the network");
251+
console.log(">> coap cnode1 node logs out the network");
252252
});
253253

254254
cnode1.on("deregistered", function(msg) {
@@ -305,7 +305,7 @@ function demoApp() {
305305
});
306306

307307
cnode2.on("registered", function() {
308-
console.log(">> MQTT cnode2 node is registered to a server");
308+
console.log(">> coap cnode2 node is registered to a server");
309309
var so = cnode2.getSmartObject();
310310
setInterval(function() {
311311
cnode2.so.read("illuminance", 0, "sensorValue", undefined, function() {});
@@ -314,11 +314,11 @@ function demoApp() {
314314
});
315315

316316
cnode2.on("login", function() {
317-
console.log(">> MQTT cnode2 node logs in the network");
317+
console.log(">> coap cnode2 node logs in the network");
318318
});
319319

320320
cnode2.on("logout ", function() {
321-
console.log(">> MQTT cnode2 node logs out the network");
321+
console.log(">> coap cnode2 node logs out the network");
322322
});
323323

324324
cnode2.on("deregistered", function(msg) {
@@ -388,16 +388,16 @@ function demoApp() {
388388
});
389389

390390
cnode3.on("registered", function() {
391-
console.log(">> MQTT cnode3 node is registered to a server");
391+
console.log(">> coap cnode3 node is registered to a server");
392392
var so = cnode3.getSmartObject();
393393
});
394394

395395
cnode3.on("login", function() {
396-
console.log(">> MQTT cnode3 node logs in the network");
396+
console.log(">> coap cnode3 node logs in the network");
397397
});
398398

399399
cnode3.on("logout ", function() {
400-
console.log(">> MQTT cnode3 node logs out the network");
400+
console.log(">> coap cnode3 node logs out the network");
401401
});
402402

403403
cnode3.on("deregistered", function(msg) {

0 commit comments

Comments
 (0)