Update Discuter avec une ESP32 authored by Tom Dugué's avatar Tom Dugué
...@@ -55,11 +55,9 @@ void loop() { ...@@ -55,11 +55,9 @@ void loop() {
} }
``` ```
# Connection Bluetooth # # Connexion Bluetooth #
Ici on va utilisé une librairie Bluetooth pour faire des connexions serialisé Ici, on va utiliser une librairie Bluetooth pour faire des connexions sérialisées, la librairie `BluetoothSerial.h`
Couplé avec l'application [Serial Bluetotth Terminal](https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal) pour Android. On peut également utilisé les macros de l'application pour allumer et éteindre la led en appuyant sur un bouton.
on va utilisé la librairie `BluetoothSerial.h`
Couplé avec l'application [Serial Bluetotth Terminal](https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal) pour Android.
Exemple de code : Exemple de code :
```cpp ```cpp
...@@ -126,6 +124,7 @@ void exeCommande() ...@@ -126,6 +124,7 @@ void exeCommande()
return; return;
} }
//default
SerialBT.println("Unknow command"); SerialBT.println("Unknow command");
} }
``` ```