Chat freely about anything...

User avatar
By peteben
#6142 Looking at the code you posted on the espressif forum, here are a few things you could try:

  • Use memset to set the entire config struct with zeros.
  • Remove that sprintf call. Just strcpy your password string directly into config.password. You don't need a separate password variable.
  • Try setting STATIONAP_MODE before calling softap_set_config.
  • Take a look at my sample app: https://github.com/peteben/xPL-ESP8266/blob/master/user/user_main.c
  • Your task should loop. Otherwise, I don't know what will happen if the only user task terminates.
  • STATIONAP_MODE means that the chip is acting both as a station and an AP? Maybe you need to call wifi_station_set_config and wifi_softap_set_config.
  • Declare your struct static, just to make sure you are not running out of stack space. Doesn't seem likely though.

Good luck.

Pete
User avatar
By alonewolfx2
#6146 @peteben Thank you for your response. I also tried memset but it's not working too. Wifi station configuration working fine but as configuration not working. Can you look this link http://bbs.espressif.com/viewtopic.php? ... d7df972945 it's bbs topic forum.
User avatar
By sej7278
#6150 this is what worries me about the future of this chip - espressif wouldn't know an sdk or makefile if it bit them on the arse. they can't even make a tarball of the toolchain without missing header files.

i really wish someone would just make a totally non-espressif firmware (let them do the hardware and leave the software alone) but i guess they can't do that as espressif haven't documented the chip well enough.

lets face it, none of the firmware (nodelua, nodemcu, AT etc.) actually builds and works properly on anything but the dodgy xp virtual machine, even the lubuntu vm doesn't work, mainly because most of the firmware authors are just copying the AT demo (except for frankenstein but i think that's dead).