This is a final year project for implementing p2p payment application using visible light communication for android.
- Python 3.10
- MS SQL database server on Azure
- Android Studio Dolphin | 2021.3.1 Patch 1 Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
- 2 x Samsung S20 FE(SM-G7810) Android Version 13
- Set up MS SQL database server.
- Use setup_database.sql to inject the database schema
- Change environment variables in ./authority server/.env to connect to the database
db_server = address to the database server
db_database = database name
db_username = username to connect to the database
db_password = password to connect to the database
db_driver = driver used for python to connect to SQL server
- install required packages for authority server using requirements.txt
pip install -r requirements.txt- Using Android Studio, open ./VLC P2P Payment/MyApplication/ directory
- After opening the project, open app/java/com.example.myapplication/APIRequest.java
- Modify the server address in the code to point to the authority server's address with port 8000 in line 33
public class APIRequest {
private String server = "http://{your server IP address}:8000";
...- Connect Android device to the computer and run the application
Run the main.py to start the FastAPI server
python3 main.py








