Hi dear community,
I am currently using nRF52 DK which has 52832 on it. I am using it for my bachelor thesis project and want to create simple sensor network. I am using RPi as a base station and 2 nRFs as nodes. Up to now, I have made progress using Mqtt example of the last Sdk, then eliminate button press so node can handle connection and publishing without pressing button. Later on, I made my publisher, subscriber at the same time since it receives some message from the base station. I am publishing temperature value read by adc from my node. My problem came after that point, I would like to use onboard buttons to create menu on my node. For instance, menu has 4 options like show the temperature data, show how much time does the node is on etc. I have done successfully the menu but when I use it with my other features, the button interrupt is not triggered or if it is triggered the publishing activity halts until button interrupt is completed. As far as I have understood from the previous posts, it is because of the priority of interrupts. I try to change priorities but could not yield any result, I want from my system to respond to my button while publishing without any blocking in each activity. Actually, I am so newbie, that is why I chose this project as my thesis project but now, I could not figure out to what idea I am supposed to use? Maybe Rtos etc. Could anyone direct me to an idea so I can search and learn by myself. For this question, I think that sharing my code is not necessary but if anyone needs, I will share it.
Best regards,
Halil