Added Bluetooth pairing procedure and pin display

This commit is contained in:
Mark Qvist 2022-10-30 16:49:35 +01:00
parent 8b7e324a5a
commit 7cdb2ec86a
5 changed files with 67 additions and 17 deletions

View file

@ -47,6 +47,10 @@
#define BT_STATE_PAIRING 0x02
#define BT_STATE_CONNECTED 0x03
uint8_t bt_state = BT_STATE_NA;
uint32_t bt_ssp_pin = 0;
bool bt_ready = false;
bool bt_enabled = false;
bool bt_allow_pairing = false;
#else
#error "The firmware cannot be compiled for the selected MCU variant"
#endif