@@ -221,7 +221,7 @@ function demoApp() {
221
221
} ) ;
222
222
223
223
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" ) ;
225
225
var so = cnode1 . getSmartObject ( ) ;
226
226
//so.read("lwm2mSecurity", function(err, data) {
227
227
// if (!err) console.log(data); // { '0':
@@ -244,11 +244,11 @@ function demoApp() {
244
244
} ) ;
245
245
246
246
cnode1 . on ( "login" , function ( ) {
247
- console . log ( ">> MQTT cnode1 node logs in the network" ) ;
247
+ console . log ( ">> coap cnode1 node logs in the network" ) ;
248
248
} ) ;
249
249
250
250
cnode1 . on ( "logout " , function ( ) {
251
- console . log ( ">> MQTT cnode1 node logs out the network" ) ;
251
+ console . log ( ">> coap cnode1 node logs out the network" ) ;
252
252
} ) ;
253
253
254
254
cnode1 . on ( "deregistered" , function ( msg ) {
@@ -305,7 +305,7 @@ function demoApp() {
305
305
} ) ;
306
306
307
307
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" ) ;
309
309
var so = cnode2 . getSmartObject ( ) ;
310
310
setInterval ( function ( ) {
311
311
cnode2 . so . read ( "illuminance" , 0 , "sensorValue" , undefined , function ( ) { } ) ;
@@ -314,11 +314,11 @@ function demoApp() {
314
314
} ) ;
315
315
316
316
cnode2 . on ( "login" , function ( ) {
317
- console . log ( ">> MQTT cnode2 node logs in the network" ) ;
317
+ console . log ( ">> coap cnode2 node logs in the network" ) ;
318
318
} ) ;
319
319
320
320
cnode2 . on ( "logout " , function ( ) {
321
- console . log ( ">> MQTT cnode2 node logs out the network" ) ;
321
+ console . log ( ">> coap cnode2 node logs out the network" ) ;
322
322
} ) ;
323
323
324
324
cnode2 . on ( "deregistered" , function ( msg ) {
@@ -388,16 +388,16 @@ function demoApp() {
388
388
} ) ;
389
389
390
390
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" ) ;
392
392
var so = cnode3 . getSmartObject ( ) ;
393
393
} ) ;
394
394
395
395
cnode3 . on ( "login" , function ( ) {
396
- console . log ( ">> MQTT cnode3 node logs in the network" ) ;
396
+ console . log ( ">> coap cnode3 node logs in the network" ) ;
397
397
} ) ;
398
398
399
399
cnode3 . on ( "logout " , function ( ) {
400
- console . log ( ">> MQTT cnode3 node logs out the network" ) ;
400
+ console . log ( ">> coap cnode3 node logs out the network" ) ;
401
401
} ) ;
402
402
403
403
cnode3 . on ( "deregistered" , function ( msg ) {
0 commit comments