BluetoothSerial::begin()

名称

BluetoothSerial::begin()

説明

Bluetoothデバイスのローカルネームを登録し、Bluetoothシリアルデバイスを開始する。

書式

#include "BluetoothSerial.h"

bool BluetoothSerial::begin(String localName, bool isMaster);

引数

localName ローカルネーム。省略時は、String()が設定される。
isMasterマスターかどうか。省略時は、false。

戻り値

実行結果。成功した場合は、true。失敗した場合は、false。

注意

SPP名称として、“ESP32_SPP_SERVER"という名称が設定されるようです。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system