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
To build and launch the demo within a browser window, run:
./gradlew jsBrowserRun
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:
./gradlew runDebugExecutableMacosX64
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.