秋月公式より引用
実際のところ
今回つかうサンプルは"BLE_write"。
其の名の通り、接続先デバイスに書き込みをします。
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0010,len:4 load:0x3fff0014,len:732 load:0x40078000,len:0 load:0x40078000,len:11572 entry 0x40078a14 1- Download and install an BLE scanner app in your phone 2- Scan for BLE devices in the app 3- Connect to MyESP32 4- Go to CUSTOM CHARACTERISTIC in CUSTOM SERVICE and write something 5- See the magic =)
接続できると、こんな感じで出てくるはず。
E (130135) BT: lmp_version_below LMP version 6 < 8 E (137207) BT: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0013
接続を受けた側には
"Hello World"というメッセージが送られます。