Hello group,
Is there a way to know the clientId of the caller of attribute setter/getter? Basically, I am trying to achieve a use case where only a specific client can set an attribute, while others can only get.
I am storing the clientId of the owner client by forcing (usage protocol :) ) it to subscribe to a 'broadcast event' which requires passing a moduleID, an enumeration, and the rest of other clients are not allowed to subscribe.
CommonAPI generates trySetXAttribute(), setXAttribute(const std::shared_ptr<CommonAPI::ClientId> _client, ...). When setValue() or setValueAsync() is called setXAttribute() i called which first void the clientId pointer and then called trySetXAttribute().
Regards,
anurag