These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What do you need to install:
nodejs
ionic
Android Dev Env: https://cordova.apache.org/docs/en/8.x/guide/platforms/android/
After installing the prerequisites:
git clone ssh://git@gitlab.com:lemark/dts.git
git clone https://git@gitlab.com:lemark/dts.git
go into your project direcotry and run
npm i
Use node v10.11.0
npm install
sudo npm install -g cordova
sudo npm install -g ionic
ionic cordova platform add browser
ionic cordova run browser
navigator.bluetooth.requestDevice({
acceptAllDevices: true,
optionalServices: ['battery_service']
})
Start the app in your browser:
ionic serve
Run the app on android:
cordova platform add android --save
ionic cordova prepare android
ionic cordova run android
- BLE - cordova-plugin-ble-central