These are chat archives for SmingHub/Sming

9th
Aug 2016
Albert Moravec
@albru123
Aug 09 2016 00:05
Hi there, is there a way to stop reconnecting when new WifiStation config is given? I need something like autoConnectOnStartup... Reconnects are causing AP to stop working.
psychegr
@psychegr
Aug 09 2016 02:08
Hi guys, first time in here and first time user of Sming and especially SmingRTOS. Long story short, i made it to work in win10 with Code::Blocks but i have a question for you. Even if i compile an empty app with only the init() function, it seems that the ESP8266 always connects to my wifi router and it doesnt even know the WPA pass. How can this be possible? It drives me crazy. Also another question? How do i "disable" this autoconnect thing? I want it to do nothing when i have a blank app flashed in it. It weird and i dont know if i have done anything wrong with the libsming compilation. Any help appreciated.
psychegr
@psychegr
Aug 09 2016 02:18
i can confirm that i can flash the ESP8266 with new code using a blink example and i just change the delay between blinks. So i know that it runs my code in there. The "additional" code seems to run after init() function, but i dont have anything in there. How does it connect to my network and how does it know the key to it? How can i stop that?
Alexander V. Ribchansky
@avr39-ripe
Aug 09 2016 07:19
@psychegr See this closed issue for explanation SmingHub/Sming#754
psychegr
@psychegr
Aug 09 2016 07:36
@avr39-ripe Thank you for that. I will give it a try and let you guys know.
Alexander V. Ribchansky
@avr39-ripe
Aug 09 2016 07:37
@psychegr you should just figure out, that there is SDK.. so there is not just yours code that runs inside ESP.. keep this in mind ;)
@psychegr sdk is kind of operation system on esp8266
psychegr
@psychegr
Aug 09 2016 07:40
@avr39-ripe Sure but at 5 o clock in the morning there is not that you can think! :P
Alexander V. Ribchansky
@avr39-ripe
Aug 09 2016 07:40
@psychegr oh yeh.. for sure :)
psychegr
@psychegr
Aug 09 2016 07:41
*not much
psychegr
@psychegr
Aug 09 2016 09:18

@avr39-ripe Apparently #754 helped me solve the issue. I added one more recipe in the Makefile-project.mk and that worked like a charm. The recipe that i added is this :
erase:
$(vecho) "Erase Flash data"
$(ESPTOOL) -p $(COM_PORT) -b $(COM_SPEED_ESPTOOL) erase_flash

thank you for pointing this out. Now it is time to put some code in this small thing! :smile:

Alexander V. Ribchansky
@avr39-ripe
Aug 09 2016 09:20
@psychegr you are welcome! Glad that can help you :)