int main(void)
{
initialize();
execution_start(start);
for (;;)
{
(void)sd_app_evt_wait();
}
}
can you explain me the execution of code flow in the main with these APIs?
Thanks,
int main(void)
{
initialize();
execution_start(start);
for (;;)
{
(void)sd_app_evt_wait();
}
}
can you explain me the execution of code flow in the main with these APIs?
Thanks,
Your code will do some initialization, then start execution of something, then enters a endless loop. sd_app_evt_wait will put the device into system on sleep mode. If you have initialized and started something that generates interrupts, your code will wake and handle events whenever they occur.
Yes, that is correct.
I'm not sure I understand your question. What sensor data are you sending, and how/where are you sending it? If you want to send data at a fixed interval, you need to setup a timer that sample the sensor and send the data. The timer will generate interrupts. If you don't want to use interrupts, you need to constancly pull the sensor data, and stall the CPU to generate delays. This is bad practise, and is not something I would recommend. If you want something to happen on a button press, you either need interrupts or you need to constantly check the state of the button/GPIO.
Unfortunately, we do not get notified by new replies if you have marked the case as "Verified Answer", please create a new case when you have more issues.
Your include paths are not correct, It looks like you have copied this from a GCC makefile. You should remove '$(SDK_ROOT:' part of the path. Did you place SDK 15 directory inside root of Mesh SDK folder?
Okay, that might be the case then. i have the SDK 15 directory inside the same folder as of Mesh , shown in picture below:
is this not a correct place for the folder?
You can place it wherever you want as long as you add the correct paths to your project include directories.
I have removed it. still the same error while building
Also, when i am trying open any file from nRF5 SDK folder, i get this error
Also, when i am trying open any file from nRF5 SDK folder, i get this error
Is the file located ìn the given path? If it is located in another path, you need to remove the file from the project and add it again from the correct path.