Within a small project I opened a wireless connection using the NRF24L01 transceiver and a Raspberry Pi 3 Model B+ with Raspbian 10. To communicate over the transceiver I make use of the RF24 library of tmrh20 (https://github.com/tmrh20/RF24.git).
In the RF24 folder is an example application called
gettingstarted that has to be created using
make. Also, SPI has to be enabled in Raspbian. When running the application
gettingstarted I have to use
sudo and for some reason it will not let me run the application with the local user.
Example of it working:
Example of it not working:
pi@raspberrypi:~/Desktop/RF24/examples_linux $ ./gettingstarted RF24/examples/GettingStarted/ terminate called after throwing an instance of 'std::runtime_error' what(): Process should run as root
What must be done to allow the local user (user "pi" in my case) to run