cckiu8
This commit is contained in:
@@ -1,9 +1,27 @@
|
||||
#include <Arduino.h>
|
||||
#include "BluetoothSerial.h"
|
||||
#include "carroEsp32.h"
|
||||
|
||||
BluetoothSerial ESP_BT; //Object for Bluetooth
|
||||
|
||||
|
||||
void setup() {
|
||||
// put your setup code here, to run once:
|
||||
init_sensores();
|
||||
Serial.begin(115200);
|
||||
Serial.println("Carro Esp32");
|
||||
ESP_BT.begin("CARRO ESP32"); //Name of your Bluetooth Signal
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// put your main code here, to run repeatedly:
|
||||
}
|
||||
|
||||
if (ESP_BT.available()) //Check if we receive anything from Bluetooth
|
||||
{
|
||||
//incoming = ESP_BT.read(); //Read what we recevive
|
||||
Serial.print("Received:"); Serial.println(ESP_BT.read());
|
||||
}
|
||||
//readSensors();
|
||||
//printSensores();
|
||||
//delay(500);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user