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,
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,