Adapted to new nCoAP interfaces