I’m using the shadow library (1.1) in my AFR based IOT application running on STM32H7.
As I understand, the shadow library macros (from shadow.h, e.g. SHADOW_TOPIC_STR_UPDATE_DELTA) that are used to create topic strings cannot accept variables as they are preprocess at compile time.
My thing name (client id) is a variable that is loaded from another storage on the board at run time (that is, it is not a link time string constant like the demos are using), the same work for the named shadow.
Is there any suggestion on how to handle this situation?
Thanks
According to the documentation you need to use Shadow_GetTopicString() if the thing name is not known at compile time.
Thank you Richard,
I was not aware to those functions.