"ESP8266 station connects to router"..

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

"ESP8266 station connects to router"..

Postby rudi » Fri May 08, 2015 9:23 pm

viewtopic.php?f=21&t=228#p835

Code: Select all

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: Select all


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 :)

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: "ESP8266 station connects to router"..

Postby ESP_Faye » Mon May 11, 2015 10:19 am

Hi,

Code: Select all

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


or

Code: Select all

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


Both are OK.

Who is online

Users browsing this forum: No registered users and 143 guests