This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get nRF Connect SDK Version from code

Hi, I've been working on SDK v1.6.1 and I just wanted to try the v1.7.0, however some functions on the power management have changed, in particularly:

int pm_device_state_set(const struct device *dev,enum pm_device_state device_power_state);
I would like to keep compatibility with the v1.6.1 until we can ensure everything works fine. Is there a way to get the version of the SDK from code, in order to put some #ifdef around the functions to manage the change?
Related