Bonjour,
J'ai un problème avec mon shield Bluetooth après avoir modifie un paramètre dans le programme elle ne veut plus emmètre de connection
#include <SoftwareSerial.h> //Software Serial Port
#define RxD 7
#define TxD 6
#define PINLED 9
#define LEDON() digitalWrite(PINLED, HIGH)
#define LEDOFF() digitalWrite(PINLED, LOW)
#define TEST() blueToothSerial.print ("T")
#define T() blueToothSerial.print ("t")
#define DEBUG_ENABLED 1
SoftwareSerial blueToothSerial(RxD, TxD);
void setup()
{
Serial.begin(9600);
pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);
pinMode(PINLED, OUTPUT);
LEDOFF();
setupBlueToothConnection();
}
void loop()
{
}
/***************************************************************************
Function Name: setupBlueToothConnection
Description: initilizing bluetooth connction
Parameters:
Return:
***************************************************************************/
void setupBlueToothConnection()
{
blueToothSerial.begin(9600);
blueToothSerial.print("AT");
delay(400);
blueToothSerial.print("AT+DEFAULT"); // Restore all setup value to factory setup
delay(2000);
blueToothSerial.print("AT+NAMESeeedBTSlave"); // set the bluetooth name as "SeeedBTSlave" ,the length of bluetooth name must less than 12 characters.
delay(400);
blueToothSerial.print("AT+PIN0000"); // set the pair code to connect
delay(400);
blueToothSerial.print("AT+AUTH1"); //
delay(400);
blueToothSerial.flush();
}
Voila mon code , la ligne que j'ai change est retiré le "PIN" de cette ligne : blueToothSerial.print("AT+PIN0000")
Et je ne vois pas comment reset la carte.
Merci