BluetoothSerial: Fix SPP service mode (#8806)
This commit is contained in:
parent
78ac143b15
commit
f04b7d9202
1 changed files with 2 additions and 4 deletions
|
|
@ -257,10 +257,8 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
|
||||||
#else
|
#else
|
||||||
esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE);
|
esp_bt_gap_set_scan_mode(ESP_BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE);
|
||||||
#endif
|
#endif
|
||||||
if (!_isMaster) {
|
log_i("ESP_SPP_INIT_EVT: %s: start", _isMaster ? "master" : "slave");
|
||||||
log_i("ESP_SPP_INIT_EVT: slave: start");
|
esp_spp_start_srv(ESP_SPP_SEC_NONE, _isMaster ? ESP_SPP_ROLE_MASTER : ESP_SPP_ROLE_SLAVE, 0, _spp_server_name);
|
||||||
esp_spp_start_srv(ESP_SPP_SEC_NONE, ESP_SPP_ROLE_SLAVE, 0, _spp_server_name);
|
|
||||||
}
|
|
||||||
xEventGroupSetBits(_spp_event_group, SPP_RUNNING);
|
xEventGroupSetBits(_spp_event_group, SPP_RUNNING);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue