Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callback mechanism into LwM2mClientObserver for when the unexpected error occurred #941

Closed

Commits on Nov 30, 2020

  1. eclipse-leshan#933: Add method: onUnexpectedErrorOccurred() for LwM…

    …2mClientObserver
    
    Add an interface method `void onUnexpectedErrorOccurred(Throwable unexpectedError)`
    into LwM2mClientObserver. This aims to hook a procedure when an unexpected
    error has been occurred.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    2e3a324 View commit details
    Browse the repository at this point in the history
  2. eclipse-leshan#933: Handle unexpected errors on `DefaultRegistrationE…

    …ngine`
    
    Call `LwM2mClientObserver#onUnexpectedErrorOccurred()` on
    `DefaultRegistrationEngine` when it raises `RuntimeException`
    at task loop.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    7e32bf5 View commit details
    Browse the repository at this point in the history
  3. eclipse-leshan#933: Add demo code to shutdown when an unexpected erro…

    …r has occurred
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    e3aad0d View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

  1. Configuration menu
    Copy the full SHA
    16c6cb7 View commit details
    Browse the repository at this point in the history
  2. eclipse-leshan#933: Implement Destroyable, Startable and Stoppable on…

    … ObjectEnabler
    
    To call `LwM2mInstanceEnabler#stop()`, `LwM2mInstanceEnabler#start()`
    and `LwM2mInstanceEnabler#destroy()` on the associated method, for each
    enabler if implemented the interface.
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    3f73020 View commit details
    Browse the repository at this point in the history
  3. eclipse-leshan#933: register ShutdownOnUnexpectedErrorObserver for Le…

    …shanClient
    
    Instead of on `LeshanClientDemo`
    
    Signed-off-by: moznion <[email protected]>
    moznion committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    7e6d029 View commit details
    Browse the repository at this point in the history
  4. eclipse-leshan#933: format code

    Signed-off-by: moznion <[email protected]>
    moznion committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    b4a89c9 View commit details
    Browse the repository at this point in the history