Overdrivr / Telemetry

Data visualization and communication with embedded devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ergonomy

Overdrivr opened this issue · comments

  • 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

update implemented in 02a587a

using match instead of filter makes more sense