Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wakaama-dev] lwm2m watcher list

Hi,

I need a small clarification in wakaama code.

LWM2M observed resources are maintained by lwm2m_watcher_t structure.


typedef struct _lwm2m_watcher_
{
    struct _lwm2m_watcher_ * next;

    bool active;
    bool update;
    lwm2m_server_t * server;
    lwm2m_attributes_t * parameters;
    uint8_t token[8];
    size_t tokenLen;
    time_t lastTime;
    uint32_t counter;
    uint16_t lastMid;
    union
    {
        int64_t asInteger;
        double  asFloat;
    } lastValue;
} lwm2m_watcher_t;

There is no member denoting the URI of resource which is to be observed.
And also, can you help me understand why "parameters" member used for.
Is it like a rule engine. For eg:  if the value is "greaterThan" a threshold, notify the server.

Thanks,
Rajesh kumar S R


Back to the top