Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
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
Dejan Levec
@deanrock
hi ... i have a question: should the esp8266 restart itself after it crashes? while testing simple HTTP requests it sometimes crashes (don't know why, it probably shouldn't, right?), however, it never came back by itself (i need to press reset button on breakout board)
sticilface
@sticilface
I think the general consensus, and my experience is that it should reset by itself. What stops it, is usually when some of the GPIOs are not set properly for normal boot.
tzapu
@tzapu
has anyone here had any luck with esp touch/smart config?
i can t seem to make it work for the life of me
Simon van der Veldt
@simonvanderveldt
@igrr Noticed your message from the beginning of September about being able to a POST over HTTPS. Does this also work with certs bigger than 1024 bit keys? And would this work together with MQTT as well?
kathir51
@kathir51
Sir
kathir51
@kathir51
Sir I am trying to compile Native C programs of ESP8266 since Arduino IDE i has xtensa tool chain. But OS related function such as os_delay_us ,os_sprintf are disabled. I have inclded respective headers. How can I enable these functions? How to add precompiled C library created using xtensa such liblcd These are acadamic intesrest pl help me
Me No Dev
@me-no-dev
you should use only the toolchain and the original SDK if you want to compile pure C apps
kathir51
@kathir51
@me-no-dev that i know . I WANT TO USE ARDUINO IDE WITH XTENSA TOOL CHAIN TO COMPILE SINCE TOOL CHAIN WAS BUILD IN
Me No Dev
@me-no-dev
@kathir51 no need for CAPS LOCK, I read fine ;) the toolchain is in there but it's it's own thing. You can pull it from the folder and use it on the side.
kathir51
@kathir51
@Links2004 thanks . I tried allready . but we cannot invoke os related functions such as os_printf ,os_delay_us etc even if we include respective headers os_api.h and os_type.h HOW WE CAN INVOKE SUCH FUNCTIONS
kathir51
@kathir51
@me-no-dev your suggestion good i already did many using outside with xtensa tool chain. I want to use arduino ide for that that also os related functions only cannot make it use
Markus
@Links2004
os_delay_us for example is defined as ets_delay_us
https://github.com/esp8266/Arduino/blob/cabb450fc13eefaf35a78b9a911d59efd548b81a/hardware/esp8266com/esp8266/tools/sdk/include/osapi.h#L12
but there is no prototype so until you not add the correct one you can not use it.
and pls no caps in the chat.
the correct prototypes can be found on the SDK documentation but no one has created them in code, even espressif not (not public).
kathir51
@kathir51
@Links2004 thanks but I included all osapi.h and ets_sys.h in my project Still i cannot succedd
Markus
@Links2004
yes the prototypes are not created/missing. espressif has them only written in the SDK documentation but not in the SDK source code if you want to use them you need to create the prototypes based on the SDK documentation.
2C-ESP8266__SDK__Programming Guide__EN_v1.3.0.pdf
Markus
@Links2004
example:
extern void ets_delay_us(uint16_t us);
kathir51
@kathir51
@Links2004 thanks yes nice help . thanking you very much
kathir51
@kathir51
@Links2004 where i can find such declaration ? i searched in ets_sys.h
Markus
@Links2004
they not existing, that is you problem :)
  1. search in the SDK doc the function
  2. read the docu for it
  3. create the prototype for the function in ets_sys.h
  4. test/use the function
  5. make a pull request ;)
Þórhallur Sverrisson
@thorhs
Hi All, I'm trying to diagnose why my wifi disconnects after 5 minutes and am trying to log output in the ESP8266WiFiClass::_eventCallback function. I'm trying to use the ets_printf function to log the reason to my serial, but I'm not getting any output.
I'm wondering if there is some other better way to log to serial from the .cpp code, or if there are some tricks to getting ets_printf to work.
Or, maybe, the callback isn't called ;)
Markus
@Links2004
have you used Serial.setDebugOutput(true); ?
Þórhallur Sverrisson
@thorhs
Nope :) I'll try that now
Þórhallur Sverrisson
@thorhs
That did the trick, I see now that the reason for my 5 minute disconnects is REASON_ASSOC_EXPIRE
Markus
@Links2004
unfortunately espressif not release a documentation of the deeper meaning of all the "reasons".
may its linked to the key rotation of WPA/WPA2. can you configure the rotation time in your router?
Þórhallur Sverrisson
@thorhs
I am communicating with a softAP on another ESP, the only two devices on the network.
I tought it might be they key rotation, so I just tried to have no encryption, and get the same behaviour
state: 5 -> 2 (4a0) rm 0 pm close 7 0 0/301997886 wifi evt: 1