Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus
@Links2004
you can use progmem and sendContent_P :)
brutzler
@brutzler
Is there somewhere an example for this? And I consider every sendContenten will cause an extra TCP-telegram?
....sendContent....
Markus
@Links2004
yes, 1 minimum
the sendContent_P is used like sendContent but the data is decelerated like
const char data[] PROGMEM = "TEST1234 PROGMEM DATA";
brutzler
@brutzler
ok thx so far. will try...brb
Jens J.
@zerog2k
anybody know how to use PROGMEM decoration on an include file? I know with avr arduino i had to include <avr/pgmspace.h>, wondering what the equivalent for esp
Markus
@Links2004
#include <pgmspace.h>
Jens J.
@zerog2k
aww... so easy thanks !
Holger Lembke
@holgerlembke
is there anything I have to do if I want to use
udp.parsePacket();
I took the ntp sample and divided the loop-parts into two parts: on that sends the request and on that waits for the request.
the waiter is called from loop with something like that:
void receiverWorkerNTP(void)
{
  int cb = udp.parsePacket();
  if (cb == NTP_PACKET_SIZE) {
  ....
}
problem is: ntp sample instantly works, my things randomly works....
I didn't change any code. Only removed the delays and converted it to ticker-counts.
Holger Lembke
@holgerlembke
Not really helping, but I suggest to add to the ntpclient.code:
void loop()
{
  //get a random server from the pool
  if (!WiFi.hostByName(ntpServerName, timeServerIP)) {
    Serial.println("Hostname lookup failed"); 
    return;
  }
Holger Lembke
@holgerlembke
And what seems to solve my problem: I now count the failed requests and after 3 fails I do
udp.stopAll();
udp.begin(localPort);
And now I go to bed.
Stoian Ivanov
@sdrsdr
@holgerlembke If the WiFi get disconnected from the AP the contexts that are used to handle TCP/UDP get invalidated and you need to .begin() them
Holger Lembke
@holgerlembke
@sdrsdr that's what I assumed. again, I think the examples should reflect and teach about those situations.
Stoian Ivanov
@sdrsdr
The point was that you can handle the situation in wifi callback and avoid the failed request altogether :)
Holger Lembke
@holgerlembke
what callback?
Markus
@Links2004
the WiFi event callback has currently no public API for access, only a override is possible.
Holger Lembke
@holgerlembke
so, @igrr , how do I submit my modified ntpclient thing?
Jens J.
@zerog2k
anybody familiar with reset timing differences between esptool.py and esptool-ck 0.4.5 ? I'm setting up a custom board (10k pullups on ch_pd & reset, 10k pulldown on gpio0), and esptool.py works great, but esptool-ck always fail. I hooked up logic analyser, there are some notable differences, but sequence of reset/rts and gpio0/dtr seem to be acceptable for both.
Markus
@Links2004
gpio0 needs a pullup and gpio 15 the pulldown
basically it shut look like this:
https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/doc/boards.md#esp-to-serial
may the speed of the Serial is different, the bootloader auto detects the baud so you can simply try to lower it.
sometimes high speed serial download make problems
madmalkav
@madmalkav
HI guys. Can anyone tell me what are the correct params (flash mode, frequency, size, ...) for the ESP-201 module? Or what can I do to figure it out with the AT commands?
d-anders
@d-anders
dio,169mhz,512MB should be ok I guess
probably doesnt have larger flash
160mhz i mean
are you getting some error message?
madmalkav
@madmalkav
No, I haven't tried, figured it will be better to ask before just in case some missparameter can cause some kind of brick
for what I read here the interface seems to be QIO http://smarpl.com/content/esp8266-esp-201-module-freeing-gpio9-and-gpio10
and if I boot with the console set to 76800bps it says flas is 8m (512K+512K)
will try and try to submit the correct params when I confirm then
ivansouza
@ivansouza
i'm trying to use the esp8266 Sketch Data upload, but i get this error: SPIFFS Error: mkspiffs not found! i'm had the mkspiffs.exe but in what folder/directory? tanks in advance...
i'm using Windows 7.
Ivan Grokhotkov
@igrr
@ivansouza wow, i have only added this section last night and someone's already trying to use it :) apparently you don't have mkspiffs.exe. I haven't yet updated boards manager definitions to install it along with the boards manager package.
if you have it already, put it next to esptool.exe
oh scratch that, it won't work
yeah, just hang on a bit, i will update boards manager package today to install mkspiffs
ivansouza
@ivansouza
@igrr , thanks for a prompt response!!! You are the GUY!!! i'm your FAN!
Ivan Grokhotkov
@igrr
@ivansouza updated the staging package and ESP8266FS tool (see docs for the new link)
give it a try if you have time
Martin Ayotte
@martinayotte
@igrr, please take a look at both PR#753 and Bug#733, I've added comments.
fmgomes
@fmgomes
Hi, do you have any idea why I have the behaviour saw in the screenshot, with the TCP available buffer going fast to zero? The ESP8266 is receiving a stream from a Icecast server. I've posted the problem here: http://www.esp8266.com/viewtopic.php?f=29&t=4308&start=0, I've posted the capture file and the wireshark screenshot in the last post on the same thread.