質問編集履歴
3
コードを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
|
14
14
|
以下ソースコードです。ボタンを押したら接続を開始します。
|
15
15
|
|
16
|
+
MainActivity.kt
|
16
17
|
```kotlin
|
17
18
|
|
18
19
|
class MainActivity : AppCompatActivity() {
|
@@ -85,4 +86,23 @@
|
|
85
86
|
Toast.makeText(applicationContext, "送信しました", Toast.LENGTH_SHORT).show()
|
86
87
|
}
|
87
88
|
}
|
89
|
+
```
|
90
|
+
|
91
|
+
activity_main.xml
|
92
|
+
```xml
|
93
|
+
<?xml version="1.0" encoding="utf-8"?>
|
94
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
95
|
+
xmlns:tools="http://schemas.android.com/tools"
|
96
|
+
android:layout_width="match_parent"
|
97
|
+
android:layout_height="wrap_content"
|
98
|
+
android:layout_margin="10dp"
|
99
|
+
android:orientation="vertical">
|
100
|
+
|
101
|
+
<Button
|
102
|
+
android:id="@+id/button_connect"
|
103
|
+
android:layout_width="wrap_content"
|
104
|
+
android:layout_height="wrap_content"
|
105
|
+
android:text="Connect"
|
106
|
+
android:textSize="18sp"/>
|
107
|
+
</LinearLayout>
|
88
108
|
```
|
2
タイトル変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
Android Blutetooth接続できない
|
1
|
+
Android 別端末にBlutetooth接続できない
|
body
CHANGED
File without changes
|
1
項目名変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
`Serial Bluetooth Terminal`では機器をスキャンした後に以下の内容で接続すると、通信を開始できました。
|
6
6
|
|
7
|
-
|
|
7
|
+
| ITEM | VALUE |
|
8
8
|
| --- | --- |
|
9
9
|
| MAC ADDRESS | 90:FD:9F:A5:F4:2A |
|
10
10
|
| Service UUID | 4880c12c-fdcb-4077-8920-a450d7f9b907 |
|