summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-25 09:45:49 +0200
committerSven Gothel <[email protected]>2020-09-25 09:45:49 +0200
commit4cbd5badeeca71ed0814b61feb80026838eb4240 (patch)
treed921836eb9b0657bb6b0f4bee29e878dc410e171 /examples
parentf8d2385b633ae7fd56c0c757c934f4ea89ecdd5f (diff)
Java Example: Rename ScannerTinyB10 -> DBTScanner10: Requiring Direct-BT, name aligned with dbt_scanner10.cpp
Diffstat (limited to 'examples')
-rw-r--r--examples/java/CMakeLists.txt8
-rw-r--r--examples/java/DBTScanner10.java (renamed from examples/java/ScannerTinyB10.java)4
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/java/CMakeLists.txt b/examples/java/CMakeLists.txt
index 25e719a8..d7a374aa 100644
--- a/examples/java/CMakeLists.txt
+++ b/examples/java/CMakeLists.txt
@@ -44,10 +44,10 @@ add_custom_command(TARGET ScannerTinyB02
)
add_dependencies(ScannerTinyB02 tinybjar)
-add_jar(ScannerTinyB10 SOURCES ScannerTinyB10.java INCLUDE_JARS "${CMAKE_CURRENT_BINARY_DIR}/../../java/tinyb2.jar" ENTRY_POINT Notification)
-add_custom_command(TARGET ScannerTinyB10
+add_jar(DBTScanner10 SOURCES DBTScanner10.java INCLUDE_JARS "${CMAKE_CURRENT_BINARY_DIR}/../../java/tinyb2.jar" ENTRY_POINT Notification)
+add_custom_command(TARGET DBTScanner10
POST_BUILD
- COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/ScannerTinyB10.dir/ScannerTinyB10.class" "${CMAKE_CURRENT_BINARY_DIR}"
+ COMMAND cp "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/DBTScanner10.dir/DBTScanner10.class" "${CMAKE_CURRENT_BINARY_DIR}"
)
-add_dependencies(ScannerTinyB10 tinybjar)
+add_dependencies(DBTScanner10 tinybjar)
diff --git a/examples/java/ScannerTinyB10.java b/examples/java/DBTScanner10.java
index c6692b7d..71528ad1 100644
--- a/examples/java/ScannerTinyB10.java
+++ b/examples/java/DBTScanner10.java
@@ -63,7 +63,7 @@ import direct_bt.tinyb.DBTManager;
* This example represents the recommended utilization of Direct-BT.
* </p>
*/
-public class ScannerTinyB10 {
+public class DBTScanner10 {
static final String EUI48_ANY_DEVICE = "00:00:00:00:00:00";
final List<String> waitForDevices = new ArrayList<String>();
@@ -603,7 +603,7 @@ public class ScannerTinyB10 {
return;
}
println("DirectBT BluetoothManager initialized!");
- final ScannerTinyB10 test = new ScannerTinyB10();
+ final DBTScanner10 test = new DBTScanner10();
boolean waitForEnter=false;
{