Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "BluetoothSerial.h"
- #if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
- #error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
- #endif
- BluetoothSerial SerialBT;
- void setup() {
- // put your setup code here, to run once:
- SerialBT.begin("LoRa_Tani");
- delay(2000);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- SerialBT.println("hi aku esp32...");
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement