Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Paulo Cabral Sanz
@paulocsanz
Thank you very much! :) I imagine after the 3.0 rush yall need(ed) some vacation from the project too lol
Paulo Cabral Sanz
@paulocsanz
Does anybody have an idea about why I'm getting this linker error? I didn't change much related to includes, I will debug it more next weekend, but it's a fairly weird error.
~/.platformio/packages/toolchain-xtensa@2.100200.0/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/bin/ld:
  ~/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lib/libstdc++.a(math_stubs_long_double.o): in function `ceill':
/workdir/repo/gcc-gnu/libstdc++-v3/src/c++98/math_stubs_long_double.cc:76: multiple definition of `ceill';
  ~/.platformio/packages/toolchain-xtensa@2.100200.0/bin/../lib/gcc/xtensa-lx106-elf/10.2.0/../../../../xtensa-lx106-elf/lib/libm.a(lib_a-ceill.o):
  /workdir/repo/newlib/newlib/libm/common/ceill.c:38: first defined here
Max Prokhorov
@mcspr:matrix.org
[m]
@paulocsanz: is this after current set of updates? see esp8266/Arduino#8262 (and also note that from the newlib pov there's no long double)
Paulo Cabral Sanz
@paulocsanz
Thank you very much! For some reason I missed this issue when I searched for problems with ceil function in the repo.
Hasenradball
@hasenradball
Hi together,
I have an ESP8266Webserver Solution which provides a Website.
I noticed that after a few days I am not able to load the page, because it seems that the ESp8266 is not connected to the router anymore.
Does anyone have an idea how to find out the root cause for this issue?
tobozo
@tobozo
@hasenradball from the recent events here and on esp32 gitter (poke @sblantipodi ) I'd check the router first :laughing:
Davide Perini
@sblantipodi
@hasenradball I still have occasional disconnections that happens when the ESP is turned off for some time. The problem only happens if I use DHCP. When it happen, there is no way to reconnect the esp, even reflashing it does not solve the problem, even rebooting the router does not solve the problem. the only things does solves the problem is to not use DHCP.
Hasenradball
@hasenradball
@sblantipodi so you mean I should use static IP?
Hasenradball
@hasenradball
@sblantipodi Do you mean ...when the router is turned off for some time...?
@tobozo what do you mean with check the router first?
Davide Perini
@sblantipodi

@sblantipodi so you mean I should use static IP?

what is your router model? DHCP should work as expected but to try to narrow the problem just stick with static IP yes.

Hasenradball
@hasenradball
@sblantipodi I use a Fritzbox 7490
Davide Perini
@sblantipodi

@tobozo what do you mean with check the router first?

I ask this because if you read one of my last post all my problems has been caused by a router's firmware update

Davide Perini
@sblantipodi
please try to use a static ip, and see if it helps... wifi signal should be strong enough obviously...
Hasenradball
@hasenradball
Ok I will check
Federico Frigo
@FIAV1

Hi there, I'm having some trouble with WebServer. It often fail to send html strings to client, I usually get errors like this:

HTTPServer: error: short send after timeout (0<2946)
http-server loop: conn=1 avail=0 status=wait-close
http-server loop: conn=1 avail=0 status=wait-close
http-server loop: conn=1 avail=0 status=wait-close
...
Drop client

and then it's impossible to get WebServer responses.

d-a-v
@d-a-v:matrix.org
[m]
@FIAV1: Can you try this
diff --git a/libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h b/libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
index 8c5cdf40..22c9a8d9 100644
--- a/libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
+++ b/libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h
@@ -500,6 +500,11 @@ void ESP8266WebServerTemplate<ServerType>::sendContent(Stream* content, ssize_t
   if (sent != content_length)
   {
     DBGWS("HTTPServer: error: short send after timeout (%d<%d)\n", sent, content_length);
+    DBGWS("Drop client\n");
+    _currentClient = ClientType();
+    _currentStatus = HC_NONE;
+    _currentUpload.reset();
+    return;
   }
   if(_chunked) {
     _currentClient.printf_P(PSTR("\r\n"));
You can also try to increase the timeout
Hasenradball
@hasenradball
Hi can anyone tell me the difference between these two settings?
WiFi.setAutoConnect(false);
WiFi.setAutoReconnect(true);
Hasenradball
@hasenradball
Does an AutoConnectwork if I switch wifi_off => wifi_on without any WiFi.begin() ?
Davide Perini
@sblantipodi
hi guys... is there something changed with the latest ESP8266 core ?
Hi have a setup.json file stored in my LittleFS memory...
if I reload the same firmware using Arduino OTA the file isn't readable right after flash...
never experienced this problem before...
Federico Frigo
@FIAV1
@d-a-v:matrix.org Thanks for the reply, I'll try that solution ASAP.
I have another question: is it possible to store a struct containing Strings and IPAddress in EEPROM? Is there any issue with these data types?
d-a-v
@d-a-v:matrix.org
[m]
It is not possible to store a String in EEPROM because of new/malloc used in it.
But you can safely copy the .c_str() value there
Federico Frigo
@FIAV1
Ok thanks!
Clemens Kirchgatterer
@everslick
and under the hood, a IPv4 address is only an uint32_t
(or uint8_t[4] depending how you look at it.)
Tushar Yadav
@tushar8727_twitter
Hello any one interfaced sst25vf080b flash chip with esp8266?
Hasenradball
@hasenradball

Hello can anyone give me an hint for what I need the lines:

#include <ESP8266mDNS.h>
#include <WiFiUdp.h>

In the OTA_Basic sketch?

Ans whats the difference between the OTA.hostname() and the WiFi.hostname()
d-a-v
@d-a-v:matrix.org
[m]
The easiest way is to remove these lines and see if you have errors.
OTA hostname is the hostname brodcasted through the mDNS protocol by the ESP itself
WiFi.hostname is the hostname indication given to the DHCP server.
Your DHCP server may or may not register the wifi hostname on the network and the associated DNS server - if any - may know that name <= this name is given by ESP to DHCP server when requesting an IP address
Hasenradball
@hasenradball
@d-a-v:matrix.org it works for me commenting the two lines :-)
Hasenradball
@hasenradball
Hi can anyone give me an hint which example should I follow to set up an https webserver?
Drzony
@drzony
Why do you want an https server on esp? Or do you mean on a PC?
https web server is extremely limited on ESP an not really required for the most part
Hasenradball
@hasenradball
The background is the following I want to send http POST data encrypted or so that cannot be seen in the browser.
Drzony
@drzony
what do you mean by "cannot be seen in the browser"? SSL does not do that
SSL encrypts the data between the browser and the server
you can see the data in the browser and on the server
not in the middle
Hasenradball
@hasenradball
example if I send a password via http POST I can see the POST -> data in the console view of the browser
Drzony
@drzony
you will also see that when sending via https
Hasenradball
@hasenradball
this I mean I want encrypt sensible data in the middle.
or if possible not to see anymore in the browser :-)