Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Tejas H
@CodingCreate101
Hi..
I have couple of questions on Arduino OTA. I am using ESP8266 Node v3. How much space it's gonna take up? My code already takes 50% of it's size.
Cristóvão Trevisan
@cristovao-trevisan
You're probably looking at the ram size. Just doubt it'll take that much flash
The is also a setting to choose how much flash is allocated to code/spiffs
Develo
@devyte
@me-no-dev I was just looking through your repos looking for the asysynncudpyou have an esp-
...asyncudp one, and I came across esp-alt-sdk
It seems to use gcc 5.1? I believe the arduino core is still on gcc 4.8.x. Have you ever tried building the core with gcc 5.1?
Develo
@devyte
(Sorry about ozom typo, 2yo daughter + typing = fail)
Me No Dev
@me-no-dev
nope. were there any issues?
Develo
@devyte
No, just asking if you ever tried it. I seem to remember a request for moving to a newer gcc,
I thought the compiler toolchain was provided by espressif
Me No Dev
@me-no-dev
crosstool-ng is the toolchain we use :) both on ESP8266 and ESP32
Develo
@devyte
From what I gather, it's on gcc 4.8.2 and the last commit was on 2014
Develo
@devyte
This message was deleted
Any idea how difficult it'd be to move to gcc 5.1 or newer?
Me No Dev
@me-no-dev
probably just a matter of rebuilding the toolchains for all OS :)
@igrr might have a better way to compile those (automated)
Bryce Schober
@bryceschober
@me-no-dev @igrr @devyte Are there ways of the user yielding to the network stack that are less minimum time away than delay(1)? Are there more specifics that I could read about the network stack's need for time?
Develo
@devyte
yield(), which is supposed to be equivalent to delay(0).
Depending on your code, even yields and delays may not be enough. They allow servicing the wifi stack, but not passing data out to the app layer, so if you take too long you could still blow up
Yield and delay can only be called from the loop, or functions called from the loop. Can't be called from e.g. a Ticker callback, and ISR
There are specific time specs defined by espressif about how long you can be away in your own code, bow long an ISR should take max, and so on.
Develo
@devyte
I don't remember the specifics for each case, but they should be in the espressif sdk docs
Bryce Schober
@bryceschober
Thanks for your help on this channel, all of you! I know it can seem like a thankless task sometimes, with users complaining about the problems they're usually causing themselves.
Bryce Schober
@bryceschober
@riataman @brutzler FYI, just ran across ESP.getSketchMD5() as declared in ESP.h. It would only help identify a particular build binary to match against the firmware on the ESP, but that would be easy to search for in the continuous-integration build job that produced that artifact and the source revision that it came from. You're doing all that, right? ;-)
Develo
@devyte
In case anyone is interested, I implemented an async dns server. It uses AsyncUDP instead of WifiUDP, and there is no need to call a function within the loop.
Bryce Schober
@bryceschober
Nice! Now we just need an AsyncDHCPServer and AsyncMDNSResponder to go with it. ;-)
Develo
@devyte
@bryceschober I think esp8266mdns is already async, although it doesn't use asyncudp
The dhcpserver for the softap is also async, I think. You don't need to call a handler from the loop
Me No Dev
@me-no-dev
@bryceschober most/half of the services are already async. They do not use AsyncUDP because it was not around when I wrote them. Plus AsyncUDP is external lib :P
Develo
@devyte
@me-no-dev I tried to write it in a generic way, aiming for compat on the esp32, but I haven't tried it (don't have boards)
Don't know if it'd be useful over there, but it's available in case somebody wants to try it out
Me No Dev
@me-no-dev
generic way will be once I add AsyncUDP there ;) which BTW I think is done, just not throughly tested. Network works differently on ESP32
Develo
@devyte
@me-no-dev ah sorry, I thought it was done. I've been sort of keeping half an eye on the esp32 repo by reading the issues and activity in general, so I'm sort of aware of the status, but not specifics
Me No Dev
@me-no-dev
async udp is a personal project of mine :) though i am thinking of including it in Arduino and basing dns and such services on it
maybe even AsyncTCP
yannS2016
@yannS2016
libmain.a(app_main.o):(.irom0.text+0x14): undefined reference to `__wrap_register_chipv6_phy'
can get help with this issues: libmain.a(app_main.o):(.irom0.text+0x21): undefined reference to `__wrap_register_chipv6_phy'
brutzler
@brutzler
Hi, has anyone experiences with light sensors (e.g. with I2C)?
Just looking at a BH1750. But its imho only as breakout available. How to use this for outdoor?....
Holger Lembke
@holgerlembke
@brutzler yes. bme280(P:1005 mBar T:21.5° C H:64 %) bmp180(P:1005 mBar T:21.2° C) hih9130(H:70 % T:21.0° C) htu21d(T:21.1° C H:66 %) bh1750fvi(Ev:15.51 lx) TSL2561(Ev:9.10 lx) rtc(T:21.2° C)
but it is indoor
brutzler
@brutzler
??? what do u want to tell me?
Mehrdad K
@mkeyno
hi guys ,I intend to make 3x3 keys with 6 pin of ESP8266, I made pin 0,2,5 as pullup input and 4,5,12 as output , I made following sketch , does anyone has experience to make keypad from ESP pins? do I need more extra pullup or pulldown resistor?
1.png
Holger Lembke
@holgerlembke
@mkeyno Should work. GPIO 16 is pulldown, all others are pullup.
Mehrdad K
@mkeyno
thanks @holgerlembke , I'm using GPIO 16 as output
dragon-engineer
@dragon-engineer
I had problems with oneWire on pin16, even with external pull-up, not a single device found on PIN16, on others works great (pin set only as input)
Me No Dev
@me-no-dev
pin16 works at a different frequency than the rest
maybe that is causing your issue
dragon-engineer
@dragon-engineer
maybe. but oneWire is 'kinda' low speed