Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] Force Wakaama client to send a SmartObject update to server?

Henrik,

The LWM2M protocol only support change reporting for something that has been observed. Calling lwm2m_resource_value_changed() on the client is correct. To be notified of changes, the server must send an observe to indicate it is interested in receiving notification of changes. The behavior you describe is what I would expect.

Regards,
Scott

-----Original Message-----
From: wakaama-dev-bounces@xxxxxxxxxxx <wakaama-dev-bounces@xxxxxxxxxxx> On Behalf Of Henrik A
Sent: Friday, April 6, 2018 7:24 AM
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] Force Wakaama client to send a SmartObject update to server?

Hi,I'm writing a C++ client using the Wakaama code.The client has a number of SmartObjects like Presence. The prescense sensordetects a change and a variable in my SmartObject is updated. This updated valueshould now be sent to the lwm2m server (leshan).This is however not the case unless "observe" is enabled for the Presence SmartObject.The Presence SmartObject code calls lwm2m_resource_value_changed(), but theupdate seems to be ignore unless there's an observer for this object/attribute.So my question is if there's a way for my code to force an update of the object?Should I use some other method than lwm2m_resource_value_changed()?Thanks,    Henrik_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_wakaama-2Ddev&d=DwIGaQ&c=OcDDp6KEkFclA8bLDeiWXQ&r=7-O0XTMEtMproxOYYl7CoPn5J4JUWVsvQI5fKWLeZho&m=MwWEH5xvcfrXxvCPhUhxIuvFoDb_VeRRZtSWa7FmNSo&s=270RTLSZxnQj3Qq95BJlzzYIa1GLoNMyovJzue5Fqc0&e=


Back to the top