ESP8266 Developer Zone The Official ESP8266 Forum 2015-05-11T10:19:28+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=434 2015-05-11T10:19:28+08:00 2015-05-11T10:19:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=434&p=1671#p1671 <![CDATA[Re: "ESP8266 station connects to router"..]]>

Code:

#define PASSWORD  "xxxxxxxxxxxxxxx"
#define SSID  "yyyyyyyyyyyyyyyyyyyy"


or

Code:

   // Wifi configuration
   char ssid[32] = "yyyyyyyyyyyyyyyyy";
   char password[64] = "xxxxxxxxxxxxxxxx";


Both are OK.

Statistics: Posted by ESP_Faye — Mon May 11, 2015 10:19 am


]]>
2015-05-08T21:23:39+08:00 2015-05-08T21:23:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=434&p=1659#p1659 <![CDATA["ESP8266 station connects to router"..]]> viewtopic.php?f=21&t=228#p835

Code:

void ICACHE_FLASH_ATTR
user_set_station_config(void)
{
   // Wifi configuration
   char ssid[32] = SSID;
   char password[64] = PASSWORD;
   struct station_config stationConf;

   //need not mac address
   stationConf.bssid_set = 0;


hi faye,

i only ask back for this for better understanding
so pls sorry for missunderstanding.

from where you take the PASSWORD and SSID`?
is there a user.h with
#define PASSWORD = "xxxxxxxxxxxxxxx"
#define SSID = "yyyyyyyyyyyyyyyyyyyy"

or is mean fill out the data here like this:

Code:


void ICACHE_FLASH_ATTR
user_set_station_config(void)
{
   // Wifi configuration
   char ssid[32] = "yyyyyyyyyyyyyyyyy";
   char password[64] = "xxxxxxxxxxxxxxxx";
   struct station_config stationConf;

   //need not mac address
   stationConf.bssid_set = 0;




txs
best wishes
rudi :)

Statistics: Posted by rudi — Fri May 08, 2015 9:23 pm


]]>