Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 651 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 651 Bytes

Lighting-Control

Clone this repo

git clone https://github.com/tehnatural1/Lighting-Control

Compile the code

gcc -o GPIOControl GPIOControl.c -lpthread

Start the service

./GPIOControl.c

Disable wifi power-management by running a script, set a service to run it on boot

./wifi_pw_mgmt.sh

To run services on boot place the files located in services to /etc/systemd/system/multi-user.target.wants and run the files on boot

systemctl enable gpiocontrol.service
systemctl enable wifipwmgmt.service

To run the services immediately

systemctl start gpiocontrol.service
systemctl start wifipwmgmt.service