At least OCRepresentation.h is rather sparse in documentation. I think the writer(s) assumed the header signatures was more than enough documentation. And it is for SetValue(), except for the case of setting an OCRepresentation.
Some documentation for AddChild(OCRepresentation) differentiating it from OC::OCRepresentation::SetValue(rep, OCRepresentation) should be added. I’ve been pondering it, and I think AddChild(OCRepresentation) is akin to adding an Array Item in JSON. Whereas, OC::OCRepresentation::SetValue(rep, OCRepresentation) is akin to add an Object Item in JSON. On 11/1/17, 1:32 PM, "Mats Wichmann" <[email protected]> wrote: >On 11/01/17 14:16, Morrow, Joseph L wrote: >> Can someone describe the behavior I should expect for this? >> >> I expect one to operate like JSON Arrays and the other to operate like JSON >> Objects, yes? Which is which? > >I'm assuming this is not documented? That would be a bug in itself... > _______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev
