-
-
Notifications
You must be signed in to change notification settings - Fork 128
4. BLE and WiFi
Dustin Watts edited this page Nov 5, 2020
·
3 revisions
On startup BLE is enabled. BLE is used to communicate with the computer to send keystrokes. WiFi is used only for the configurator.
When you go to the configurator through the "settings" menu on the FreeTouchDeck, first BLE is disabled:
bleKeyboard.end();
btStop();
esp_bt_controller_disable();
esp_bt_controller_deinit();
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);
then the WiFi is started:
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
MDNS.addService("http","tcp",80);
MDNS.begin(host);
and then the webserver is started:
webserver.begin();
You can join my Discord server where I have a dedicated #freetouchdeck channel. https://discord.gg/RE3XevS