Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Reconnect / re-register client?

Hi,
  If you lost connection, you don't need to de-register/re-register.
  If you have a static IP, you have nothing to do at lightweight M2M level.
  If you have a dynamic IP, you need to do a registration update.
 
  The current version of leshan client does nothing automatically, all should be done manually.
  The next version should be smarter, you could have a look here.
Simon

Le 05/01/2016 12:00, Abel de Beer a écrit :
Hi all,

My question, summarised: what is the recommended way of reconnecting / re-registering a Leshan client?

Simplified scenario:
1. Start and register Leshan client
2. Internet connection drops
3. Internet connection restored
4. Leshan client should be re-registered

>From what I’ve seen, the Leshan client does not automatically de- and re-register the client when the socket connection drops.

Questions:
1. Are there any hooks / listeners I can implement so that I know when the client is disconnected / reconnected?
2. Do I always need to de-register and re-register the Leshan client on disconnected / reconnected?
3. Is there an example somewhere of connection management? It would be great if it could be added to the repository, as it is a core feature IMHO.

Thanks in advance!

Best regards,

Abel


_______________________________________________
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


Back to the top