Skip to content

Latest commit

 

History

History
121 lines (85 loc) · 3.33 KB

README.md

File metadata and controls

121 lines (85 loc) · 3.33 KB

badge badge badge

SensorTag

Sample app providing connectivity/communication (connects and reads gyroscope) with SensorTag devices to demonstrate capabilities/usage of Kable library.

Android

Android App screen recording

The Android App can be built and installed via Android Studio, or via command line by executing:

./gradlew installDebug

iOS

iOS App screen recording

The iOS project is generated via:

./gradlew generateXcodeProject

Tip

./gradlew openXcode can be used to both generate the project and open it in Xcode.

In Xcode, configure signing, then run.

JavaScript

JavaScript browser app screen recording

A live demo can be viewed here, or to build and launch the demo within a browser window on your local machine, run:

./gradlew jsBrowserRun

Important

Web Bluetooth is only available on supported browsers, see Web Bluetooth API: Browser compatibility for a list of supported browsers.

MacOS

When run, app will launch and immediately scan for nearby SensorTag peripherals. The first one found will be connected to. Once connected, the SensorTag gyro will be subscribed to and printed to console as values arrive.

MacOS console app screen recording

Console app can be built and run by executing:

Mac CPU Command
Intel
./gradlew runDebugExecutableMacosX64
Apple (e.g. M1)
./gradlew runDebugExecutableMacosArm64

License

Copyright 2020 JUUL Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.