Server for GPIO Controller phone applications
- Copy the Python files (.py) to your Raspberry Pi
- Ensure your Raspberry Pi distro is up to date (# yum/apt-get upgrade)
- Install python3, python3-flask, and flask-cors
- As root, run the command "python PiServer.py"
- Use
curl
commands to test the server until the phone applications are updated to use the new implementation. Example:curl -X GET http://localhost:5000/get-pin-value/7
orcurl -X POST http://localhost:5000/set-pin-value/7/1
- Server now implements a Flask server instead of a raw socket connection
- This breaks the related phone applications until they are updated with the new interface
- Networking and Pi functionality are separated for better modularity
- Removing PWM functionality to favor logical HIGH and LOW outputs