Posts

Showing posts from July, 2023

ESP32's Bluetooth: Everything You Need to Know

Image
     In this blog post we will be diving into the world of esp32's Bluetooth capabilities. The esp32 is famous for its Wi-Fi capabilities but it also has some Bluetooth functionalities like the Bluetooth classic and the BLE that is Bluetooth Low Energy.  In this post we'll be mainly looking at the Bluetooth classic. ps: Micropython doesn't support bluetooth classic of the esp32(at the time of writing).    let's get started STEP 1:  Connect the Esp32 to your computer and open the Arduino IDE.     First of all for understanding this we are going to look at the examples. we need the serial to serial BT.      if you have already used Bluetooth with Arduino you will understand it easily, it's similar you can go check out my video.     Code Explanation  In the first line we include the Bluetooth serial library   #include "BluetoothSerial.h" next if you want to use a pin or password we can set that PIN to acc...