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。

沒事了,我是笨蛋,使用的設備有問題