Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Steve Nelson
@zenmanenergy
dmarkey did you find the answer? If you install the ESP board into the Arduino IDE using the board manager, you’ll see a bunch of examples. There is one called “WIFIClient” under “ESP8266WIFI”
look at the section titled “Installing with Boards Manager” https://github.com/esp8266/Arduino
David
@dmarkey
Looks very manual, no HTTP abstraction.
Steve Nelson
@zenmanenergy
Yes you have to manually create the HTTP strings which is a bit of a pain, but not too difficult once you get used to it. The thing that I found a bit of the pain was dealing with urlencoding. I made an example that hasnt’ been added to the library yet to simplify url encoding. look here: https://github.com/zenmanenergy/ESP8266-Arduino-Examples
David
@dmarkey
Ah, im ging to port a library, cant be bothered with all that.
sticilface
@sticilface
I'm using El capitan and now I get a "allow incoming network dialog" everytime I try to do an OTA update. The problem is that unless i click it immediately... the update fails. I've added python to firewall, and arduino... (which also asks..) does anyone have a solution... i tried this one... http://stackoverflow.com/questions/19688841/add-python-to-os-x-firewall-options but i get an error about not having Xcode...
Me No Dev
@me-no-dev
do you have Xcode?
sticilface
@sticilface
i did but had to remove it as I'm using an air with no hdd space left... having to install all that just for that is a bit of a pain!
think it runs to many gigs... and i've only 128gb ssd.
Me No Dev
@me-no-dev
yeah... no go then :) need Xcode for signing
sticilface
@sticilface
got it to work by adding a 2 second delay before the ESP tried to connect back. is long enough to work reliably..
arghhhhh
Me No Dev
@me-no-dev
lots of new security in El Captain
sticilface
@sticilface
yeah... to get the serial drivers to work, had to reboot into a mode... do stuff, then install.. total pain in the ass
i guess i can install, sign and uninstall?
Me No Dev
@me-no-dev
not really
since it's a self-signing thing
sticilface
@sticilface
mmm...
Me No Dev
@me-no-dev
you need to have the proper certs and so on services in order for the OS to recognize it as your signature
sticilface
@sticilface
guess i need to buy a new mac then... with more space! ;)
Me No Dev
@me-no-dev
unless of course you have a Mac Dev account that has a real certificate for distribution
check google just in case
but i'm pretty sure i'm correct
maybe binary version of the uploader would do
sticilface
@sticilface
I've defo not got any of those.. I'm downloading Xcode.. all 4Gb..
d-anders
@d-anders
umm, is D4 very wrong to use on a nodemcu board?
i used it for the echo pin of a ultrasonic sensor and it kept on setting my board in a strange state if it was connected when booting
it would work if i connected it later
then i switched to d6 and no problems
d-anders
@d-anders
haha, D4 is gpio_2....
sticilface
@sticilface
This message was deleted
This message was deleted
David
@dmarkey
Anyone working on a reddit client lib?
WHAAAT
@WHAAAT
Hello, i´m currently working with my nodemcu and arduino core. if i request the sensor data to often the connection somehow dies. is there a good way to keep the connection alive?
d-anders
@d-anders
what sensor?
WHAAAT
@WHAAAT
mainly i have a dht22 temp/hum. sensor connected. my requests are every 15 min.
d-anders
@d-anders
oh, 15 mins is nothing
i mean should give no problems
WHAAAT
@WHAAAT
i thought so, i have read it is possible every 2 seconds ... do you know if there is a way to keep the signal to the router alive? i couldnt find any real documentation for the esp8266 arduino ide. And the example dont cover these problems
*examples
d-anders
@d-anders
what do you do between reading?
WHAAAT
@WHAAAT
nothing, the arduino ide just has callbacks for html requests. therefor i have just method that handles them. if I request the url/temp the esp8266 print a html with the data thats all.
d-anders
@d-anders
strange
does it reboot or just lose connection?
WHAAAT
@WHAAAT
just loose connection, if dont request so often i can keep the connection for days
d-anders
@d-anders
i have a nodemcu board but havent experienced any such problems. i dont have the dht11 though
but for example ds18b20 i can read every second or so with no problems
hm, how long does a read take?
if you are using a timer maybe you cant do the reading in the actual timer handler function
if so - try setting a boolean flag check it in the main loop and read if it is set