Post topics, source code that relate to the Arduino Platform

User avatar
By ricg
#21178 Yep, looks like it's responding .
What code are you using to connect to wifi ? also, what code to setup as AP ?
User avatar
By aragorn
#22426 For setting up as AP

AT+CWMODE=2
AT+CIPMUX=1
AT+CWSAP="SSID","passwd",1,0

And for wi-fi

AT+CWMODE=3 (or AT+CWMODE=1)
AT+CWJAP="SSID","Password"

but it doesn't work!...
User avatar
By martinayotte
#22427 Do you have strange characters in SSID or PW ?
Is your PW has at least 8 characters without spaces ?
Last edited by martinayotte on Tue Jul 07, 2015 9:26 am, edited 1 time in total.
User avatar
By clown
#22485 hello,

sry for my english and poor duino skills :)

i am using MEGA + esp-05 - better to say, i'd like to use ...

wired as follows

RST - unused
GND - to external pwrsource GND
TX - to MEGA RX3
RX - to MEGA TX3
VCC - to external 3.3V

using this code
Code: Select allString inputString = "";         // a string to hold incoming data
boolean stringComplete = false;  // whether the string is complete

String inputString3 = "";         // a string to hold incoming data
boolean stringComplete3 = false;  // whether the string is complete


void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial3.begin(9600);
  Serial.println("hi there ...");
}

void loop() {
  if (stringComplete) {
    Serial.print("Serial input:");
    Serial.println(inputString);
    Serial.println("-----------");
    Serial3.print(inputString);
    Serial3.print("\n");
    inputString = "";
    stringComplete = false;
  }
 
  if (stringComplete3) {
    Serial.print("S3 IN>>");
    Serial.println(inputString3);
    inputString3 = "";
    stringComplete3 = false;
  }
  serialEvent(); 
  serial3Event(); 
 
 
}

void serialEvent() {
  while (Serial.available()) {
    char inChar = (char)Serial.read();
   
    if (inChar == '\n') {
      stringComplete = true;
    }else inputString += inChar;
  }
}

void serial3Event() {
  while (Serial3.available()) {
    char inChar = (char)Serial3.read();
   
    if (inChar == '\n') {
      stringComplete3 = true;
    }else inputString3 += inChar; 
   
  }
}


i got from ESP only what i send to it

Code: Select allhi there ...
Serial input:AT
-----------
S3 IN>>AT


could you suply any advice? thanks a lot in advance
hugo