You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using coap-node to emulate a lwm2m client.
I noticed that when observe events are received by the COAP stack, they are not forwarded to my application (see extract below)
Anything wrong with what I am doing ?
Thanks for helping
coapnode.register(Lwm2m_Host,Lwm2m_Port,function(err,rsp) {
if (rsp.status == '2.01') {
nb_registered++;
Devices[d_index].registered=1;
coapNode[d_index]=coapnode;
d_index++;
if (d_index <= last_index) {
setTimeout(next_reg,Reg_Timer_ms,d_index);
}
}
});
coapnode.on('registered',function() {
if (verbose==1)
console.log("Registration of "+Devices[d_index].Name+" done");
});
coapnode.on('observe',((mydev_index) => {return(req) => {
console.log("Observe for "+Devices[mydev_index].Name+" received: ",req);
Devices[mydev_index].observed=1;
nb_observed++;
};})(d_index));
The text was updated successfully, but these errors were encountered:
Hello,
I am using coap-node to emulate a lwm2m client.
I noticed that when observe events are received by the COAP stack, they are not forwarded to my application (see extract below)
Anything wrong with what I am doing ?
Thanks for helping
The text was updated successfully, but these errors were encountered: