This commit is contained in:
2019-08-05 22:34:11 -05:00
parent 9a6b8b6a16
commit 6c4cdab3bc
4 changed files with 90 additions and 4 deletions

View File

@@ -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);
}