Open anklimov opened 4 years ago
This should be calls to yield(), not a special new function.
Great! it was surprise for me now, that yield() also defined as weak function. Thanks! However, definition of some ethernet library specific handler might allow to avoid re-enterability issues when ethernet functions will be invoked indirectly from yield() handler in case if some "ethernetYield" will be redefined in sketch , it will be possible to raise some global flags before normal yield() to prevent nested lib invocation. So, my suggestion to use ethernetYield() weak handler execution in loops inside lib, and to define default weak handler with normal yield(); execution inside It looks slightly more flexible.
Memory usage change @ 7cbcf56e0a2cd5e822500e4e21bf31f6b4690481
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:avr:leonardo | :small_red_triangle: 0 - +36 | 0.0 - +0.13 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:mega | :small_red_triangle: 0 - +36 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:nano | :small_red_triangle: 0 - +36 | 0.0 - +0.12 | 0 - 0 | 0.0 - 0.0 |
arduino:megaavr:nona4809 | :small_red_triangle: 0 - +36 | 0.0 - +0.07 | 0 - 0 | 0.0 - 0.0 |
arduino:megaavr:uno2018 | :small_red_triangle: 0 - +36 | 0.0 - +0.07 | 0 - 0 | 0.0 - 0.0 |
arduino:sam:arduino_due_x_dbg | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | N/A | N/A |
arduino:samd:arduino_zero_edbg | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkr1000 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrfox1200 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrgsm1400 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrnb1500 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrvidor4000 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwan1300 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwan1310 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrzero | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:nano_33_iot | :small_red_triangle: 0 - +32 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
…hile DNS requests and TCP:open/close awaiting for results