This is the React-Native cross-platform (Android and iOS) mobile application for locking/unlocking an Arduino Device through Bluetooth.
The app works with both versions of the Server/Device (master and ecc branch, according to the selected cryptography system).
Following the React-Native official guide you can set up your development environment (for Android and/or iOS): https://reactnative.dev/docs/environment-setup
Once you have downloaded the repository, in the App.js
file, change the two fetch()
, according to your server address:
fetch('https://SERVER_ADDRESS:8888/authorize-operation', { ...
fetch('https://SERVER_ADDRESS:8888/result', { ...
Then, just execute the command to build the application:
npx react-native run-android
or, if you want to run the app on an iOS device:
npx react-native run-ios
a) Locked device
b) Unlocked device