I currently develop the urge to have a set of callbacks around the moment an exposed variable is queried from the ‘cloud’. I am adding code to achieve this to the class files spark_protocol.cpp and .h It seems to work, still writing code…
But suddenly I realize that this alteration can only be implemented when one compiles locally.
Is there a way to ‘override’ the spark_protocol files in the IDE? That would be NICE!
Or if the Spark team feels the same way I do shall we implement a callback mechanism. Like:
on_variable_request(char *variable_key, int buflen) //called just before blocking_send()
on_variable_send(char *variable_key, int buflen) //called after blocking_send().
These callbacks will make a lot of extra functionality possible, e.g. allocate memory, send the variable and free memory, or setting parameters and resetting them et cetera.
If there are more people interested in my solution, I can share my code when it is tested