質問編集履歴
2
質問用の書式の改善
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
ESP-WROOM-32でBLEを使って
|
1
|
+
ESP-WROOM-32でBLEを使ってスケッチ例SerialToSerialBTを実装したい
|
body
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
#前提・実現したいこと
|
1
|
-
ESP-WROOM-32
|
2
|
+
ESP-WROOM-32でBLEを使って、スケッチ例の"SerialToSerialBT"を実装することを目指しています。
|
2
|
-
ON/OFFを手持ちのiPhone8で操作するプログラムをArduinoIDEで実装したいと考えております。
|
3
3
|
|
4
|
+
#ここまではできました
|
4
|
-
|
5
|
+
BLEのスケッチ例、SerialToSerialBTをESP32に書き込んでみたところ、コンパイルには問題ないようで
|
5
|
-
|
6
|
+
シリアルモニタに次のような表示が現れました。
|
7
|
+
|
6
8
|
```Arduino
|
7
9
|
ets Jun 8 2016 00:22:57
|
8
10
|
|
@@ -18,15 +20,21 @@
|
|
18
20
|
The device started, now you can pair it with bluetooth!
|
19
21
|
|
20
22
|
```
|
23
|
+
|
24
|
+
#問題
|
21
25
|
しかし、iPhoneの一般設定のbluetoothの設定を見てもESP32が検出される様子が見られません。
|
22
26
|
おそらく自分の理解が足りてないのであると思いますが、今回のシリアル通信でbluetooth接続
|
23
27
|
をするためにはどうすればよいのでしょうか?
|
24
28
|
|
29
|
+
#開発環境
|
25
30
|
GithubのArduinoIDE用ESP32コンパイルライブラリ
|
26
31
|
[リンク内容](https://github.com/espressif/arduino-esp32)
|
27
32
|
|
28
|
-
|
33
|
+
実装したスケッチ例"SerialToSerialBT"のコード
|
29
34
|
[リンク内容](https://github.com/espressif/arduino-esp32/tree/master/libraries/BluetoothSerial)
|
30
35
|
|
36
|
+
#目標
|
37
|
+
ESP-WROOM-32をBLE(Bluetooth Low Energy)にてビルドインLED(デジタルピン2)の
|
38
|
+
ON/OFFを手持ちのiPhone8で操作するプログラムをArduinoIDEで実装したいと考えております。
|
31
|
-
最終的に以下の動画のプログラム
|
39
|
+
最終的に以下のyoutube動画のプログラム実装を目指しています。
|
32
40
|
[リンク内容](https://www.youtube.com/watch?v=qOlDEEGPrZI&t=146s)
|
1
計画の最終目的を記入
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,4 +26,7 @@
|
|
26
26
|
[リンク内容](https://github.com/espressif/arduino-esp32)
|
27
27
|
|
28
28
|
試しに実装したスケッチ例"SerialToSerialBT"のコード
|
29
|
-
[リンク内容](https://github.com/espressif/arduino-esp32/tree/master/libraries/BluetoothSerial)
|
29
|
+
[リンク内容](https://github.com/espressif/arduino-esp32/tree/master/libraries/BluetoothSerial)
|
30
|
+
|
31
|
+
最終的に以下の動画のプログラムの実装を目指しています。
|
32
|
+
[リンク内容](https://www.youtube.com/watch?v=qOlDEEGPrZI&t=146s)
|