I need to add DEVICE_API in my code. How can I do that? Currently, I’m using NCS v2.6.1.
I need to add DEVICE_API in my code. How can I do that? Currently, I’m using NCS v2.6.1.
Hi,
We have two products: one uses the old NVS version (already launched) and the other uses the latest version. To maintain consistency, we need to implement the same API for both firmware versions. For this purpose, we are using the device API as shown below.
Hi Chriaq,
The already launched version is the one that uses NCS v2.6.1 or is NCS v2.6.1 what you mean by newest version?
Benjamin
Hi,
newest version is the 3.0.2
Yes, in v3.0.2 you can use the DEVICE_API macro. You cannot use it in v2.6.1, because it does not exist in Zephyr.