Texas Instruments React Native application designed to connect, scan, and manage Bluetooth Low Energy (BLE) devices on Android and iOS platforms.
Features include device scanning, filtering, connecting, and managing device configurations with an intuitive UI.
Before setting up the project, ensure you have the following installed:
-
Android Studio
https://developer.android.com/studio -
Xcode
Download from the Mac App Store -
Java 17
https://download.oracle.com/java/17/archive/jdk-17.0.8_macos-x64_bin.dmg -
Node.js LTS (v22.14.0)
https://nodejs.org/en -
Homebrew (v4.4.17)
https://github.com/Homebrew/brew/releases/download/4.4.17/Homebrew-4.4.17.pkg
export http_proxy="<your-proxy>"
export https_proxy="<your-proxy>"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install android-platform-tools
brew install cocoapods- Download SDK Platform-Tools for Mac from: https://developer.android.com/studio/releases/platform-tools.html
- Open Terminal and run:
cd ~/Downloads/
unzip platform-tools-latest*.zip
mkdir ~/.android-sdk-macosx
mv platform-tools/ ~/.android-sdk-macosx/platform-tools
echo 'export PATH=$PATH:~/.android-sdk-macosx/platform-tools/' >> ~/.zshrc
source ~/.zshrc
adb devicesEdit your shell profile (~/.zshrc or equivalent):
nano ~/.zshrcAdd these lines (replace {YourName} with your macOS username):
export ANDROID_HOME=/Users/{YourName}/Library/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/tools/bin:$PATHSave and exit (Ctrl+X, then Y, then Enter), then restart the terminal and verify:
echo $ANDROID_HOME - Gradle proxy: Add to android/gradle.properties
systemProp.http.proxyHost=<your-proxy>
systemProp.http.proxyPort=<port>
systemProp.https.proxyHost=<your-proxy>
systemProp.https.proxyPort=<port>
- npm proxy:
npm config set proxy http://<your-proxy>:<port>
npm config set https-proxy http://<your-proxy>:<port>Follow React Native official environment setup: https://reactnative.dev/docs/environment-setup
From the project root, run:
npm installEnable ADB debugging on your Android device: https://developer.android.com/studio/debug/dev-options
Connect your phone via USB and run:
adb devices
adb reverse tcp:8081 tcp:8081
npm run android- Open the project in Xcode.
- Select your project SimpleLink Connect in the left sidebar.
- Navigate to the Signing & Capabilities tab.
- Set your team and signing certificates accordingly.
cd ios
pod installnpm install -g react-native
npm install -g ios-deployMake sure your iPhone is connected via USB and on the same WiFi network, then run:
npx react-native run-ios --device "Name of iPhone"