Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Leshan Subscription/Notification

You can look at the demo code to see how to use API.

About listening observation and registration, here is some code sample

For the last master version :

server.getRegistrationService().addListener(registrationListener);
server.getObservationService().addListener(observationListener);

For the last milestones release (0.1.11-M14) :

server.getClientRegistry().addListener(clientRegistryListener);
server.getObservationRegistry().addListener(observationRegistryListener);

Le 09/01/2017 à 10:59, Santos Das a écrit :
Hi,

I am looking for some examples for subscription and Notification. 

For example, my application wants to subscribe to the Leshan Sever to get a notification when the device gets connected.

Could you please point me to some examples.

Thanks, Santos


_______________________________________________
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