Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Martin Ayotte
@martinayotte
BTW, even if you choose NodeMCU variant, plain pin numbers should still work too.
Stavros Korokithakis
@skorokithakis
hey guys, is there a way for me to add multiple wifi networks to the ESP? flashing it every time is becoming a huge pain
aw, it looks like my pcb is incompatible with the amica nodemcu and i'm grouding the "SD0" pin on it... does anyone know what that pin is?
Stavros Korokithakis
@skorokithakis
i'm looking at the wifimulti example here (https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiMulti/WiFiMulti.ino) but i'm not sure how i can make it work with the mqtt library, which requires a WiFiClient instance. does anyone know if i can just pass the wifimulti instance in?
Ivan Grokhotkov
@igrr
WiFiMulti is not a replacement for WiFiClient
WiFiMulti is a thing which manages connections to several wireless networks
WiFiClient is a TCP client socket
So you can use WiFiMulti to handle multiple SSIDs and then use WiFiClient to do the actual connection
Martin Ayotte
@martinayotte
@igrr , I'm doing here quite an ambassador job, but since I didn't follow all details, is the UDP Multicast sporadic crashes are only related to get newer SDKs into Next Release ? (from one of several threads : http://www.esp8266.com/viewtopic.php?f=8&p=46955#p46955 )
Ivan Grokhotkov
@igrr
That seems to be related to a bug in lwip. Yes, the plan is to have it fixed in 2.3.0
Martin Ayotte
@martinayotte
Nice ! :-) ... Thanks ! You will do some happy users, although I'm not personally affected ...
praween-chao
@praween-chao
Who have the best tutorial mqtt, please share to me, I 'm newbie.
Ivan Grokhotkov
@igrr
@martinayotte I've pushed the changes that are supposed to fix this. I'll do more tests myself, and if I find no new issues then I'll make a new staging release available.
Martin Ayotte
@martinayotte
@igrr , you're a champion !
gonsays
@gonsays
Hey guys, I'm trying to use the WebUpdater.ino example on ESP-01 and I'm getting this error http://imgur.com/AoGGTdC
I'm using Flash Size 512K (no SPIFFS)
I've tried the usual 512K (64K SPIFFS)
"Flash real size: 1048576"
idk if the error is regarding the file dimension
"system param error
gonsays
@gonsays
nervmind guys, I should have been using "Flash Size: 1M (64K SPIIFS)"
liangzelang
@liangzelang
i am a new starter, and when i compile the esp8266 project ,it will generate one new file named "Lwip" ,and i wonder how does it generate
Stavros Korokithakis
@skorokithakis
@igrr, what confuses me is that WiFiMulti can also do the connection itself
jasperachtbaan
@jasperachtbaan
After installing the websocket_client, the websocket httpserver gives these errors when I try to compile
c:/tools/sming/Sming/SmingCore/Boards.h:17: undefined reference to `WebSocket::sendString(String const&)'
Anybody got any idea?
Martin Ayotte
@martinayotte
@jasperachtbaan , unfortunately, this gitter chat is for Arduino ESP framework, not for Sming. There is another one called SmingHub/Sming for that.
gonsays
@gonsays
hey guys, I want to do a LAN ip scanner with esp8266. The local ip can be aloccated as 192.168.1.1 to 192.168.1.255. Some routers start allocating from 192.168.1.1 and other routers start allocating from 192.168.1.100.
Can Arduino IDE read and write on .txt files?
FS function maybe
I'm a bit confused about the way to tell the ESP that the allocation interval is beginning in 1 or 100
being 255 ips I need to declare 255 ip strings
heavy
Martin Ayotte
@martinayotte
Yes, you can read/write files using SPIFS functions.
gonsays
@gonsays
I'll search it, thanks martin :)
martin, to declare the ip's to ping i'm using this: const char* ping_ip[] = {"192.168.1.1", "192.168.1.2", "192.168.1.3", "192.168.1.4", "192.168.1.5", "192.168.1.6", "192.168.1.7", "192.168.1.8", "192.168.1.9", "192.168.1.10"};
if I want to ping 255 ips, I have to declare the 255 values on a char array
can you recommend me another way to do it?
I think this way is too heavy
Michael Miller
@Makuna
@gonsays You can store the strings in PROGMEM; but this is not how I would do it.
You should just have a constant for the prefix "192.168.1.", and then concatenate this with a itoa(octet); incrementing the last octet as a variable and passing it to itoa(). Further, you will find you made an assumption, as many routers use something other than 1 for the second to last octet so you will want to the same with it.
gonsays
@gonsays
Thanks @Makuna !
gonsays
@gonsays
what do you advise me to use instead of delay()? I've made some research and people tend NOT to use the delay function
instead of delay I would like to make the ESP sleep during 15 seconds, for example
gonsays
@gonsays
@martinayotte I'm sorry to bother you again, but is it possible to DOWNLOAD a .txt from www.site.com/file.txt and then use SPIFFS function to read it? Or is it only to read/write locally?
Steve Nelson
@zenmanenergy
I haven't worked on my esp code in a couple months. I just upgraded to the latest stable version and now I'm getting a lot of "exit status 1" compile errors. My .ino codebase has a bunch of tabs and that seems to be causing the errors. It's like the functions are out of order or something. any ideas?
it says:
exit status 1
'someFunctionInAnotherTab' was not declared in this scope
This error started when I upgraded to arduino 1.6.8 and v2.2.0 of the esp codebase.
Martin Ayotte
@martinayotte
@gonsays , do you mean download a file from the internet and save it into SPIFFS and later read it locally ? Of course, it is doable.
@zenmanenergy , Yes, the IDE 1.6.8 has some problems with "forward declarations". Either you revert to 1.6.5, otherwise, you will have to place a copy of the function prototypes into a *.h and include it. (hoping this issue will be fixed in 1.6.9)
Steve Nelson
@zenmanenergy
so I can just breakup my code using tabs anymore? *sigh
so I *can't rather
Martin Ayotte
@martinayotte
I don't think it has any thing with tabs, simply that prototype need to be seen before calling the function.
Steve Nelson
@zenmanenergy
as I understand the tabs in the ide, it copies the code onto the bottom of the file which is similar to putting functions declaration after the code that calls the function, so it's out of order. oh well, I'll just change things around.