dictionnary implementation for Arduino and / or mbed ?
add function filter(TM_msg * msg, const char * topic) that returns true if received msg matched a given topic
add function filter(TM_msg * msg, const char * topic, TM_type type) that returns true if received msg matched a given topic and received type matched a given type
add function update(TM_msg * msg, const char * topic, TM_type type, float & output) that returns true if received msg matched a given topic, type matches as well, and writes received data inside output variable. Do it for every supported type
filter(TM_msg * msg, const char * topic)
that returns true if received msg matched a given topicfilter(TM_msg * msg, const char * topic, TM_type type)
that returns true if received msg matched a given topic and received type matched a given typeupdate(TM_msg * msg, const char * topic, TM_type type, float & output)
that returns true if received msg matched a given topic, type matches as well, and writes received data inside output variable. Do it for every supported type