2020-10-05 12:15 AM
I would like to use the Bluetooth sample program SampleApp as the basis of my own program in such a way that you can call up the ioc file afterwards, change it and save it again without losing the changes in the Bluetooth part. I am not an experienced programmer and therefore not able to create my own program in the time I have. It is therefore important for me that I can integrate my changes into the existing environment without having understood the whole thing in detail. Is there any documentation or best practice for this?
2020-10-05 06:15 AM
IOC files generate code with USER CODE sections in them. If you put your code within those sections, it should be preserved on code re-generation.
Some examples don't have IOC files, in which case you can just modify the source file directly.
2020-10-06 06:37 AM
> If you put your code within those sections, it should be preserved on code re-generation.
That is true, if it is activated (default):
Project Manager > Code Generator --> Keep User Code when re-generated