Skip to main content

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

Hi Simon,

Thank you for your reply.

I looked at it earlier too. But, these are a part of the demo server. I have a REST Server (running without LESHAN) on a Virtual Machine and I want to pull the information or get notified from the LESHAN Server.

Any help on how this can/should be done?

Thanks, Santos


On Mon, Jan 9, 2017 at 5:01 PM, Simon Bernard <contact@xxxxxxxxxxxxxxx> wrote:

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


_______________________________________________
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