From Kaigen.YANG at hsmoptics.com Wed May 8 03:13:51 2019 From: Kaigen.YANG at hsmoptics.com (YANG Kaigen) Date: Wed, 8 May 2019 03:13:51 +0000 Subject: [sysrepo-devel] =?utf-8?b?562U5aSNOiAgYWJvdXQgdGhlIHN1YnNjcmlw?= =?utf-8?q?tion?= In-Reply-To: <4d8f-5cc19980-51-1cf4b920@8821554> References: <4d8f-5cc19980-51-1cf4b920@8821554> Message-ID: Thanks Michal, it seems OK for me. -----????----- ???: Michal Va?ko [mailto:mvasko at cesnet.cz] ????: 2019?4?25? 19:27 ???: YANG Kaigen ??: sysrepo-devel at sysrepo.org ??: Re: [sysrepo-devel] about the subscription Hi, best suitable would be notifications for this purpose. You can subscribe to them using sr_event_notif_subscribe() and ten send (generate) them using sr_event_notif_send(). Regards, Michal On Thursday, April 25, 2019 03:55 CEST, YANG Kaigen wrote: > Hi, we found there have two types of asynchronous events in sysrepo, > > * change in the running datastore (Running datastore subscriptions), > * request for state data (Data provider subscriptions). > > Sometimes, we need a function to initiative notify the client the change of the state data, such as the alarm, temperature etc. Whether there have some solution to implement it? Thanks a lot! > > > > > > Br. > kaigeny > > >