Closed tankerdream closed 8 years ago
The config is passed in by server.js
if (program.coap) {
process.stdout.write('Starting CoAP...');
var coapServer = require('./lib/coapServer')(config, parentConnection);
console.log(' done.');
}
I see.The parameter config
is necessary ,but the coap
in the config
is optional.thx!
server.js is
When I run it,commend line is
I think there is something wrong in
coapServer.js
line 33coapConfig = config.coap || {};