Bluetooth En Arduino Cambiar Nombre
HC06 Abrir Moodle Entrar A Recursos Sitio Web Pai Robotica Monitor De Serie #include <SoftwareSerial.h> // Incluimos la librería SoftwareSerial SoftwareSerial BT(10,11); // Definimos los pines RX y TX del Arduino conectados al Bluetooth void setup() { BT.begin(9600); // Inicializamos el puerto serie BT que hemos creado Serial.begin(9600); // Inicializamos el puerto serie } void loop() { if(BT.available()) // Si llega un dato por el puerto BT se envía al monitor serial { Serial.write(BT.read()); } if(Serial.available()) // Si llega un dato por el monitor serial se envía al puerto BT { BT.write(Serial.read()); } } AT+NAMEERNESTO