Skip to content

Not able to add the event subset. #2

@maunishpatel1

Description

@maunishpatel1

Hey,

I am adding a new subset with the prefix 'e'. I want the data to be published whenever the value is updated. However, I am continuously receiving published data but the value has not changed.

I have added the following lines to my application, but they are not functioning as expected.


THINGSET_ADD_GROUP(TS_ID_ROOT, 0x02, "Sample", THINGSET_NO_CALLBACK);
THINGSET_ADD_ITEM_UINT32(0x02, 0x40, "rCounter", &counter, THINGSET_ANY_R, 0);
THINGSET_ADD_ITEM_UINT32(0x02, 0x41, "wCounter", &counter, THINGSET_ANY_RW, 0);


I am trying to display the data using the shell command, but the rCounter and wCounter nodes are not being displayed.


uart:~$ thingset ?
85 {"Sample":null,"pNodeID":"E9C101C32B6A8827","pNodeName":"Thermo","_Reporting":null}


Please let me know if there is anything I am doing wrong.

Thanks in Advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions