Buenas tardes.
Tengo un MegaPi con el módulo Bluetooth y lo que quiero hacer es simplemente enviar el caracter "X" por bluetooth. Yo utilizo el "Bluetooh serial terminal" y el BluetermFX, el programa es este:
#include “MeMegaPi.h”
#include <SoftwareSerial.h>
#include <Arduino.h>
#include <Wire.h>
MeBluetooth bluetooth(PORT_5);
int i = 0;
void setup()
{
bluetooth.begin(115200);
}
void loop()
{ i++;
bluetooth.print(“Bt loop count.”);
bluetooth.println(i);
delay(1000);
}
Tengo emparejado el BT y el PC pero nunca me llegan datos al terminal.
Pensando en que no funciona el bluetooth.print, he intentado con bluetooth.write enviando un solo caracter pero tampoco obtengo resultados
void loop()
{
bluetooth.write(‘X’);
delay(1000);
}
¿alguna sugerencia?
Un saludo
Buenas tardes.
Tengo un MegaPi con el módulo Bluetooth y lo que quiero hacer es simplemente enviar el caracter "X" por bluetooth. Yo utilizo el "Bluetooh serial terminal" y el BluetermFX, el programa es este:
````
#include “MeMegaPi.h”
#include <SoftwareSerial.h>
#include <Arduino.h>
#include <Wire.h>
MeBluetooth bluetooth(PORT_5);
int i = 0;
void setup()
{
bluetooth.begin(115200);
}
void loop()
{ i++;
bluetooth.print(“Bt loop count.”);
bluetooth.println(i);
delay(1000);
}
````
Tengo emparejado el BT y el PC pero nunca me llegan datos al terminal.
Pensando en que no funciona el bluetooth.print, he intentado con bluetooth.write enviando un solo caracter pero tampoco obtengo resultados
````
void loop()
{
bluetooth.write(‘X’);
delay(1000);
}
````
¿alguna sugerencia?
Un saludo