Is it possible to send a Configuration File viz.
conf.json that can be sent to the Arduino Yun via Ethernet and a Python Program can parse the configuration and set for example Sampling Rate of a Sensor which is connected to the 32u4?
The problem for me is that Sampling Rate in the Arduino Sketch is actually a preprocessor directive and I understand that C++/Arduino Sketches need to be compiled once before the changes take place.
However, how can I change the preprocessor directive in the sketch using a configuration file?
#define SAMPLE_RATE (100)
conf.json file somewhere there might be:
.json file is parsed using python is it possible to change
#define SAMPLE_RATE (100) // to #define SAMPLE_RATE (1000)