fbiego / sensortag

Sample demonstrating use of Kable library with SensorTag device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JavaScript

JavaScript browser app screen recording

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.

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.

About

Sample demonstrating use of Kable library with SensorTag device.

License:Apache License 2.0


Languages

Language:Kotlin 97.5%Language:HTML 2.4%Language:CSS 0.1%