Advertisement
mikroavr

esp32_bluetooth

Feb 11th, 2021
1,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "BluetoothSerial.h"
  2.  
  3. #if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
  4. #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
  5. #endif
  6.  
  7. BluetoothSerial SerialBT;
  8.  
  9.  
  10. void setup() {
  11.   // put your setup code here, to run once:
  12.   SerialBT.begin("LoRa_Tani");
  13.   delay(2000);
  14. }
  15.  
  16. void loop() {
  17.   // put your main code here, to run repeatedly:
  18.     SerialBT.println("hi aku esp32...");
  19.     delay(1000);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement