Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 19 22:58
    d-a-v synchronize #6813
  • Nov 19 22:43
    d-a-v opened #6813
  • Nov 19 22:12
    jbrepogmailcom closed #6752
  • Nov 19 21:47
    d-a-v opened #6812
  • Nov 19 21:38
    earlephilhower synchronize #6294
  • Nov 19 20:05
    devyte synchronize #6784
  • Nov 19 20:05
    devyte milestoned #6725
  • Nov 19 20:05
    devyte demilestoned #6725
  • Nov 19 19:28
    devyte labeled #6752
  • Nov 19 19:19
    devyte assigned #6810
  • Nov 19 19:17
    devyte labeled #6808
  • Nov 19 19:17
    devyte labeled #6808
  • Nov 19 19:16
  • Nov 19 19:16
    devyte synchronize #6725
  • Nov 19 19:16

    devyte on master

    Add callbacks for ESP8266HTTPUp… (compare)

  • Nov 19 19:15
    devyte closed #6796
  • Nov 19 17:47
    devyte synchronize #6796
  • Nov 19 17:46

    devyte on master

    Add const char* content to ESP8… (compare)

  • Nov 19 17:46
    devyte closed #6797
Ivan Grokhotkov
@igrr
it communicates over TCP
while cesanta's gdbstub is for bare metal (no OS) and communicates over UART
initial Filesystem support (not too many features yet) up for review
d-anders
@d-anders
seems that running the dns server and webserver at the same time is a bit too much
Ivan Grokhotkov
@igrr
just like mDNS and SSDP, DNS library needs to be rewritten a bit to respond asynchronously (I.e. without calling it from loop())
d-anders
@d-anders
i see
it seems that it causes the webserver to miss request
Michael Miller
@Makuna
@igrr maybe we should be discussing int level here?
Ivan Grokhotkov
@igrr
yes sure
Michael Miller
@Makuna
I am on the fence of the concept of even exposing int levels, but they can be very poweful. I know we need the simple Arduino compatible interrupts/nointerrupts, but for core stuff or advanced library writers.
Ivan Grokhotkov
@igrr
i need to read the docs again and see which levels are used for which interrupts
Ivan Grokhotkov
@igrr
Staging version updated, pull from @Links2004 went in as well as FPSTR support from @Makuna and some Filesystem functions.
d-anders
@d-anders
cool, filesystem
Harrison Mclean
@h4rm0n1c
This message was deleted
This message was deleted
The memory patch that's been floating around has been merged? Sweet.
sticilface
@sticilface
@igrr and others, just wanted to say thanks for all the work! I replaced the flash chips on 3 ESP-01s and now have OTA working for all my projects. It is 2min to deploy new binaries to all of them which is amazing!!!!
d-anders
@d-anders
do you use it when developing? doesnt ota transfers take quite long time?
Ivan Grokhotkov
@igrr
In my experience, OTA takes less time than serial upload (although i am constrained to 230400 baud)
d-anders
@d-anders
oh
i thought max wifi transfer rates were quite low
i should try it on my esp-12 then
Ivan Grokhotkov
@igrr
transfer rates tend to go up as you increase packet size. if you use something like 1460 bytes (which is the MTU with current libraries), it will be fairly quick.
d-anders
@d-anders
hm, then i think i have another question
what is the default packet size and where do i set it?
and does calling wificlient.write(*buf,1460) set it?
fmgomes
@fmgomes
Yesterday I tried the new staging version, and the filesystem test: https://github.com/esp8266/Arduino/tree/esp8266/hardware/esp8266com/esp8266/tests/FSWrapper
It worked well, is this going to be the FS interface in the future?
Ivan Grokhotkov
@igrr
mostly, yes. File and Dir classes will stay mostly the same (maybe will add some functions, but not remove anything)
FS class, i'm not totally sure, i'm still looking how to do it better
there will be free-standing functions like mount, open, openDir, rename, remove, etc
these will work with all mounted filesystems
e.g. you can have one SPIFFS mounted at /spi and an SD card mounted at /sd
and then do something like File f = open("/spi/config.txt", "r");
instead of File f = SPIFFS.open("/config.txt", "r");
this is useful for WebServer integration when WebServer doesn't know which filesystem it has to get files from
So i'm not sure if i need to keep FS.open, FS.openDir, etc. or just leave freestanding functions to do that
I'm preparing all this for the workshop at Boston Fab Fest which will happen next monday, so I will likely finish this stuff this week.
Ivan Grokhotkov
@igrr
Suggestions on the API are totally welcome though.
d-anders
@d-anders
keep it simple
Ivan Grokhotkov
@igrr
@d-anders regarding packet size
each time you call client.write(), packet is sent. so the size of your data determines the size of the packet.
if you use client.println("foo"), for instance, that will cause two packets to be sent: one will be 3 bytes, containing "foo", another one two bytes, containing "\r\n"
because internally println calls write() two times
if you have char buf[1460] and you do wificlient.write(buf, sizeof(buf));, that will send all the data in one packet.
fmgomes
@fmgomes
@igrr, thanks! Good work! How is the flash space reserved for the filesystem? Isn't it necessary to reserve space for it?
fmgomes
@fmgomes
I need to have some space for the filesystem, but also need OTA, is it possible?
Ivan Grokhotkov
@igrr
the space for filesystem is reserved automatically. in fact, it was reserved for a long time, it's just that we didn't have high-level FS api
for "generic" board, there is a menu which allows you to select flash size, and it lists how much will be for sketch and how much for SPIFFS