| 
Hi Ashish,   First Observation parameters are not implemented yet in wakaama. I plan to have them in January. So for now having the resource /1/0/2 has no effect. If you want to implement the support for it, I would suggest to had fields in the lwm2m_watcher_t structure:
 one to store the Default Minimum Period of the server and one to store the time of the last notification sent to the server. The first one would be initialized in core/observe.c handle_observe_request() function. In core/observe.c lwm2m_resource_value_changed() function, you can implement this logic: For each watcher: If (now – last notification time) > Default Minimum Period Then send nofication Else retry at next lwm2m_step() call   Hoping this helps, David Navarro   From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx]
On Behalf Of ??????Sent: Friday, 11 December, 2015 06:28
 To: wakaama-dev@xxxxxxxxxxx
 Subject: [wakaama-dev] How to implement Default Minimum Period
   
I am trying to implement Default Minimum Period for observe functionality of LWM2M Server Object with resource id - /1/0/2 
1. First thing i wanted to know is that whether this feature is to be impelemented on Wakaama Client or on Leshan Server side 
2. I tried to implemented this in Wakaama Client but i am unable to do. Can any one guide me or help me with any documentation where and what logic is to be implemented?  --  ---------------------------------------------------------------------Intel Corporation SAS (French simplified joint stock company)
 Registered headquarters: "Les Montalets"- 2, rue de Paris,
 92196 Meudon Cedex, France
 Registration Number:  302 456 199 R.C.S. NANTERRE
 Capital: 4,572,000 Euros
 This e-mail and any attachments may contain confidential material forthe sole use of the intended recipient(s). Any review or distribution
 by others is strictly prohibited. If you are not the intended
 recipient, please contact the sender and delete all copies.
 |