josejarpaparra wrote:Good Night.
I'm new with ESP8266....... I changed the user_config.h file ( MESH_ROUTER_BSSID, MESH_ROUTER_SSID and MESH_ROUTER_PASSWD). Then I compiled the demo (mesh_demo first and after mesh_perfomance) with success. I Downloaded the firmware in two devices and I get the same output of traderlopez.
I went throught the entire thread without understand the solution ......it seems to be like my devices can't see my Router. Can Clarify, please?
Thanks in advance.
JJARPA.
Statistics: Posted by Guest — Tue Dec 06, 2016 10:22 am
Statistics: Posted by Guest — Sat Oct 08, 2016 1:57 pm
Statistics: Posted by josejarpaparra — Thu Oct 06, 2016 9:37 am
Code:
static bool ICACHE_FLASH_ATTR router_init()
{
struct station_config config;
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
/*
* please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router
*/
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
MESH_DEMO_MEMCPY(config.ssid, MESH_ROUTER_SSID, MESH_DEMO_STRLEN(MESH_ROUTER_SSID));
MESH_DEMO_MEMCPY(config.password, MESH_ROUTER_PASSWD, MESH_DEMO_STRLEN(MESH_ROUTER_PASSWD));
/*
* if you use router with hide ssid, you MUST set bssid in config,
* otherwise, node will fail to connect router.
*
* if you use normal router, please pay no attention to the bssid,
* and you don't need to modify the bssid, mesh will ignore the bssid.
*/
config.bssid_set = 1;
MESH_DEMO_MEMCPY(config.bssid, MESH_ROUTER_BSSID, sizeof(config.bssid));
if (!espconn_mesh_is_root_candidate())
goto INIT_SMARTCONFIG;
if (!espconn_mesh_set_router(&config)) {
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
INIT_SMARTCONFIG:
/*
* use esp-touch(smart configure) to sent information about router AP to mesh node
*/
esptouch_init();
MESH_DEMO_PRINT("flush ssid:%s pwd:%s\n", config.ssid, config.password);
return true;
}
Statistics: Posted by Guest — Thu Sep 29, 2016 10:17 pm
Statistics: Posted by Guest — Thu Sep 29, 2016 10:16 pm
Code:
static bool ICACHE_FLASH_ATTR router_init()
{
struct station_config config;
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
/*
* please change MESH_ROUTER_SSID and MESH_ROUTER_PASSWD according to your router
*/
MESH_DEMO_MEMSET(&config, 0, sizeof(config));
MESH_DEMO_MEMCPY(config.ssid, MESH_ROUTER_SSID, MESH_DEMO_STRLEN(MESH_ROUTER_SSID));
MESH_DEMO_MEMCPY(config.password, MESH_ROUTER_PASSWD, MESH_DEMO_STRLEN(MESH_ROUTER_PASSWD));
/*
* if you use router with hide ssid, you MUST set bssid in config,
* otherwise, node will fail to connect router.
*
* if you use normal router, please pay no attention to the bssid,
* and you don't need to modify the bssid, mesh will ignore the bssid.
*/
config.bssid_set = 1;
MESH_DEMO_MEMCPY(config.bssid, MESH_ROUTER_BSSID, sizeof(config.bssid));
if (!espconn_mesh_is_root_candidate())
goto INIT_SMARTCONFIG;
if (!espconn_mesh_set_router(&config)) {
MESH_DEMO_PRINT("set_router fail\n");
return false;
}
INIT_SMARTCONFIG:
/*
* use esp-touch(smart configure) to sent information about router AP to mesh node
*/
esptouch_init();
MESH_DEMO_PRINT("flush ssid:%s pwd:%s\n", config.ssid, config.password);
return true;
}
Statistics: Posted by BeniBoy — Thu Sep 29, 2016 9:54 pm
Statistics: Posted by Guest — Thu Sep 29, 2016 9:02 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 6:01 pm
Statistics: Posted by Guest — Thu Sep 29, 2016 5:48 pm
Statistics: Posted by Guest — Thu Sep 29, 2016 5:37 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 5:17 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 4:47 pm
Statistics: Posted by trojek — Thu Sep 29, 2016 3:46 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 3:17 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 2:47 pm
Statistics: Posted by Guest — Thu Sep 29, 2016 1:02 pm
Statistics: Posted by traderlopez — Thu Sep 29, 2016 12:55 pm