Sample app providing connectivity/communication (connects and reads gyroscope) with SensorTag devices to demonstrate capabilities/usage of Kable library.
The Android App can be built and installed via Android Studio, or via command line by executing:
./gradlew installDebug
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.
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.
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.
Console app can be built and run by executing:
Mac CPU | Command |
Intel |
./gradlew runDebugExecutableMacosX64 |
Apple (e.g. M1) |
./gradlew runDebugExecutableMacosArm64 |
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.