Wifi Shield V3 Problems
Hello everyone,
I've tried to find a way to solve this problem, but it turns out that no one topic has been resolved properly.
I have 2 DFRobot Wifi Shield (which one version 2.2, the other one is version 3)
DFRobot Wifi Shield v2.2 I have no problem at all.
However I encountered an obstacle when using that version 3.
I've tried to follow all the tutorials at https://www.dfrobot.com/wiki/index.php/ ... KU:TEL0078
But still can not, even I have copied the source code on the page still can not solve my problems.
My problem is that I can receive data sent from Arduino but I can not send data to Arduino.
Please help solve this problem, because if this is not resolved, then there is no point in purchasing this item.
If you want to know my code, here is my code (I copied from the link I mentioned above)
I've tried to find a way to solve this problem, but it turns out that no one topic has been resolved properly.
I have 2 DFRobot Wifi Shield (which one version 2.2, the other one is version 3)
DFRobot Wifi Shield v2.2 I have no problem at all.
However I encountered an obstacle when using that version 3.
I've tried to follow all the tutorials at https://www.dfrobot.com/wiki/index.php/ ... KU:TEL0078
But still can not, even I have copied the source code on the page still can not solve my problems.
My problem is that I can receive data sent from Arduino but I can not send data to Arduino.
Please help solve this problem, because if this is not resolved, then there is no point in purchasing this item.
If you want to know my code, here is my code (I copied from the link I mentioned above)
Code: Select all
#define Sleep_RQ 11 //sleep control input pin of the WIFI shield
#define Sleep_ON 12 //sleep state output pin of the WIFI shield
unsigned char flag; //Sleep state
void setup()
{
Serial.begin(115200); //Baudrate
pinMode(Sleep_ON,INPUT);
pinMode(Sleep_RQ,OUTPUT);
digitalWrite(Sleep_RQ,HIGH); //Running
delay(100);
Serial.println("Start!"); //Test start
for(unsigned char i = 0;i<10;i++) //output the state of the shield lasts 20 seconds
{
flag = digitalRead(Sleep_ON);
if(0 == flag)
Serial.println("D12=0 Sleep");
else
Serial.println("D12=1 Active");
delay(1000);
}
Serial.println("Sleep after five second!"); //Sleep after five second
digitalWrite(Sleep_RQ,LOW); //set the shield to sleep mode
delay(5000);
digitalWrite(Sleep_RQ,HIGH);
delay(100);
Serial.println("Sleep Now!");
for(unsigned char i = 0;i<10;i++) //output the state of the shield lasts 20 seconds
{
flag = digitalRead(Sleep_ON);
if(0 == flag)
Serial.println("D12=0 Sleep");
else
Serial.println("D12=1 Active");
delay(1000);
}
Serial.println("Weak up Now!");
digitalWrite(Sleep_RQ,LOW); //set the shield to normal working state
delay(2000);
digitalWrite(Sleep_RQ,HIGH);
delay(100);
for(unsigned char i = 0;i<10;i++) //output the state of the shield lasts 20 seconds
{
flag = digitalRead(12);
if(0 == flag)
Serial.println("D12=0 Sleep");
else
Serial.println("D12=1 Active");
delay(1000);
}
Serial.println("Test RX and TX!");
}
void loop()
{
if(Serial.available()>0) //Print what serial received.
{
char inbyte=Serial.read();
Serial.print(inbyte);
}
}