I have a HC-06 and HC-08 bluetooth module, and it doesn't seem to respond to any AT commands I give it. I can connect to it no problem, but when I try to send data, even the AT command doesn't return anything. I've tried switching around the TX and RX pins in the code, but nothing works. I have the RX pin on the bluetooth module on a voltage divider that I checked with a voltmeter that works. I've also tried 38400 baud rate, yet still doesn't work. Module is from DSD Tech if that helps. Does anyone know why the AT command doesn't work?
#include <SoftwareSerial.h>
SoftwareSerial mySerial(11,10); // RX, TX PIN
String str;
void setup() {
Serial.begin(9600);
Serial.println("Enter AT Commands:");
mySerial.begin(9600);
}
void loop() {
if(mySerial.available()){
Serial.write(mySerial.read());
}
if(Serial.available()){
mySerial.write(Serial.read());
}
}