Hi,
See my response below,
Simon
Le 10/03/2017 à 14:35, Martin Scheffler
a écrit :
Hi all,
thanks for your replies!
So LwM2M is still in the running for us, the
benefits of having a finished high level protocol
definitely outweigh the costs of adding support for
an acknowledgement chain to an existing
implementation.
So after digging a bit through leshan it seems to me
there is currently no support for confirmable
observation on both client and server side, right?
Would this be an interesting addition?
Currently observation request (server side) is confirmable.
Leshan Server accept confirmable or unconfirmable notification.
Notification (client side) is unconfirmable most of the time. (there
is a kind of magic in californium)
You can play with networkconfig to define when you want to send CON
or UN but this is a global config.
https://github.com/eclipse/californium/blob/5ef638e341d7b5f6edd48a5ccbfc97a804034a79/californium-core/src/main/java/org/eclipse/californium/core/network/stack/ObserveLayer.java#L68
https://github.com/eclipse/californium/blob/5ef638e341d7b5f6edd48a5ccbfc97a804034a79/californium-core/src/main/java/org/eclipse/californium/core/observe/ObserveRelation.java#L170
If you want a per resource configuration there is nothing like this
in Leshan Client for now.
On the server side, maybe the
RegistrationListener::updated method could be changed to
return a bool to show that the value was successfully
consumed, causing the server to send an ack or nack.
Or the RegistrationUpdate class could get an accept()
method?
I do not understand what could be the benefits of that ? The server
use Piggy back on update this make sense to me.
On the client side things would be a bit different because
multiple listeners can observe a resource. So maybe add a
callback interface where users can register centrally to get
informed about incoming acks?
Or maybe add an ackReceived method to BaseInstanceEnabler?
That way the client can make sure a value was received by an
observer before deleting it from memory.
I don't understand, what do you want to delete from memory ?
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev
|