mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-08-02 11:36:22 -04:00
Added cable/bluetooth multiplexing
This commit is contained in:
parent
cf4ad22086
commit
bea14dcf05
3 changed files with 148 additions and 119 deletions
|
@ -62,6 +62,7 @@ char bt_devname[11];
|
|||
void bt_connection_callback(esp_spp_cb_event_t event, esp_spp_cb_param_t *param){
|
||||
if(event == ESP_SPP_SRV_OPEN_EVT) {
|
||||
bt_state = BT_STATE_CONNECTED;
|
||||
cable_state = CABLE_STATE_DISCONNECTED;
|
||||
}
|
||||
|
||||
if(event == ESP_SPP_CLOSE_EVT ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue