1- Circuitary :
- connected the 3.3v from the Arduino to the Vcc of the Module.
-connected the Ground from the Arduino to the Ground of the Module.
-connected the Tx and Rx of the Module to Pins 2,3 respectively (I will set them as Serial Pins later in Code)
2- Arduino Cpde:
#include<SoftwareSerial.h>
#define RxPin 3
#define TxPin 2
SoftwareSerial esp = SoftwareSerial(2,3);
void setup() {
pinMode(RxPin, INPUT);
pinMode(TxPin,OUTPUT);
Serial.begin(9600);
esp.begin(9600);
if(esp.isListening()!= 0)
Serial.println("Module is Listening");
esp.print("anyMessage");
if(esp.available())
Serial.print("Recieved");
}
now when i open the Serial Monitor i can see the "Module is Listening" message but i can't see the "Recieved" message which means the module is not recieving any data from the Arduino, what am i missing here ?