wm_demo. h 修改了:
执行 wm_ble_server_api_demo. c 的 tls_ble_client_demo_api_init () ;
打印日志:
[WM_I] "0: 00: 00. 1048" bt system running, uart_no=255, log_level=6
[WM_I] "0: 00: 00. 1094" adapter status = bt_state_on
[WM_I] "0: 00: 00. 1102" init base application
Sequence Command Description[WM_I] "0: 00: 00. 1120" tls_ble_client_demo_api_init state=0
[WM_I] "0: 00: 00. 1130" tls_ble_client_demo_api_init success
为什么手机搜索不到蓝牙 WM-09: 01: 10
执行 tls_ble_server_demo_api_init () ;
打印日志为:
[WM_I] "0: 00: 00. 1048" bt system running, uart_no=255, log_level=6
[WM_I] "0: 00: 00. 1094" adapter status = bt_state_on
[WM_I] "0: 00: 00. 1102" init base application
Sequence Command Description[WM_I] "0: 00: 00. 1120" tls_ble_server_demo_api_init, state=0

[WM_I] "0: 00: 00. 1130" tls_ble_server_demo_api_init register success
[WM_I] "0: 00: 00. 1142" service, uuid16 0xfff0 handle=1 (0001)
[WM_I] "0: 00: 00. 1154" charact, uuid16 0xfff2 arg 0 def_handle=2 (0002) val_handle=3 (0003)
[WM_I] "0: 00: 00. 1170" charact, uuid16 0xfff3 arg 0 def_handle=4 (0004) val_handle=5 (0005)
[WM_I] "0: 00: 00. 1186" charact, uuid16 0xfff1 arg 0 def_handle=6 (0006) val_handle=7 (0007)
[WM_I] "0: 00: 00. 1202" charact, uuid16 0xfff4 arg 0 def_handle=9 (0009) val_handle=10 (000A)
手机可以搜索到蓝牙 WM-09: 01: 10
但是为什么一直连接超时.
我使用的经典 BT, 怎么切换到 BLE
我这边用 demo 测试是可以的, 可以换个 app 试下, 排除是不是 app 的问题. 我用的 nRF Connect.

没事了, 我是笨蛋, 使用的设备有问题