Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
if we move the TCP part to Async, then yes
an-erd
@an-erd
can I spend some time in the ArduinoOTA.onProgress() function to update the display?
Me No Dev
@me-no-dev
yes
not too much though
an-erd
@an-erd
Ok thanks, I'll try
an-erd
@an-erd
Works pretty good, the OLED display update does not cause any problems! Thanks
Myles Eftos
@madpilot
@me-no-dev Is using async something you are working on at the moment? As I was thinking of looking in to this.
Me No Dev
@me-no-dev
@madpilot my async libs are fine, if that is what you are asking, else I'm working on esp32
James
@WanaGo

Hello
Does anyone have any experience with doing UDP NTP Time stuff with the ESP8266?
I am using the PJRC time library, and based my sketch on the ESP8266 example.
I get the NTP server IP on startup, and it gets the EPOCH time no problem. But the next time to goes to sync (set for 5 minutes, but tried 30 minutes also), it fails.
I enabled the Debug, and I get the following:

connected with ROUTER, channel 11
ip:192.168.178.99,mask:255.255.255.0,gw:192.168.178.1
wifi evt: 0
wifi evt: 3
Connected - 192.168.178.99
Setting Up UDP
scandone
Transmit NTP Request
[hostByName] request IP for: pool.ntp.org
[hostByName] Host: pool.ntp.org IP: 202.6.116.123
pool.ntp.org: 202.6.116.123
Receive NTP Response

And then next time I get:

Transmit NTP Request
[hostByName] request IP for: pool.ntp.org
[hostByName] Host: pool.ntp.org lookup error: -5!
pool.ntp.org: 0.0.0.0

James
@WanaGo
tried DHCP, Static, defining DNS and not defining DNS, results are the same. I cant figure out what is going on.
it uses the exact same code the first attempt as with every other attempt
James
@WanaGo
esp8266/Arduino#3150
That looks to be the same thing
James
@WanaGo
WiFi.hostByName() seems to work once. So I have done this at setup() now, and then saved the IP address globally, and used that each time after that.
Something is wrong though, there is a bug somewhere.
James
@WanaGo
ok no that didnt work either.
James
@WanaGo
been using 2.3.0, tried 2.4.0rc1, same exact thing
Holger Lembke
@holgerlembke
Moin moin!
I try to get LiquidCrystal_I2C to run with es8266. i2cscan shows the pcf8574, but it does not work at all... any hints? any working github repo? thanks!
Holger Lembke
@holgerlembke
ok, self answering service: https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library seems to work.
an-erd
@an-erd
I need a way to get multiple WiFi networks running, but to differentiate between private network (at home to use the own MQTT broker 192.168.1.1) or public network (w/o MQTT home network). There is another hotspot pretty close and when I'm at home I don't want to connect to this one. WiFiMulti works fine, but does not have the feature of using different profiles "private" and "public". Before I start working on an extension to WiFiMulti I want to see whether there are appropriate solutions around. Do you know of such a functionality?
brutzler
@brutzler
Hy guys,
just a little question:
I am using a Wemos D1 mini board. Here I need to comunicate serial with an external unit (IR-read/write-head)
Is it uncritical to use the normal TXD0/RXD0? Or should I use the RXD2/TXD2 (using serial swap) to avoid problems during download?
Bert Melis
@bertmelis
I advise you to swap.
brutzler
@brutzler
reason for swaping?
Bert Melis
@bertmelis
I've got a connected device (on Serial0) and when not swapped, I must physically disconnect otherwise it won't flash.
brutzler
@brutzler
ok thx
an-erd
@an-erd
Hi, is there a way to point the timer callback function to a class function. (I found ways to do it with interrupts and with gotIpEventHandler_ = WiFi.onStationModeGotIP(), but this last piece for os_timer_setfn(). Thanks!
brutzler
@brutzler

@bertmelis
back to serial swap:
I have connected my IR-R/W-Unit to TXD2/RXD2 (IO15/IO13).

  #define ITFserial Serial
......
   ITFserial.begin(9600);    
   Serial.swap();

thats IMHO all code I need.
BUT. its not working proper. If I disconnect the TX/RX wires, start the ESP and connect the two wires its working. With fully connected IR-unit, the ESP fails to start, and the IR-TX-LED is always ON.
Something, I do not see?

brutzler
@brutzler
Additional: With connected device on TXD2/RXD2 I am not even able to make serial download :-(
Is GPIO13/15 needed for download or booting?
Bert Melis
@bertmelis
I'll try to figure out my steps tonight...
Give me an hour and I'll be back
Remark: instead of defining your serial, you could also make it a hardwareserial pointer or reference. That way, you can use your own name and still assign the seriazl interface you like.
hreintke
@hreintke
@an-erd see esp8266/Arduino#2738
Bert Melis
@bertmelis
@brutzler It'll be for tomorrow (or even later) as I did made some changes to the firmware I wanted to test with and now it doesn't work anymore :worried: :cry:
brutzler
@brutzler
Remark: instead of defining your serial, you could also make it a hardwareserial pointer or reference. That way, you can use your own name and still assign the seriazl interface you like.
You have an example for me?
brutzler
@brutzler
Think I figured out the problem. On the D1 mini (or on a NodeMCU too) GPIO15 is pulled down to GND with a 12k resistor.
My IR-Unit pulls TXD up to Vcc.
Hmmm...just thinking about SoftwareSerial. Never tried on an ESP. Any chance for working? only need 9600Baud.
Mike Kranidis
@mikekgr
Dear Friends, I have a problem that it drive me mad! Tested In several ESP8266 Based on ESP-12F modules all the same problem, I running my sketch that is Arduino ESP8266 Core 2.3.0 ( also tested with the git recent version, same problem... ) based mostly used Blynk 0.4.7 library. When I running the module(s) at my home using TpLink 4G router M7350 UN then keeping printing the ESP Free Heap this memory always auto reduced without a reason... WITH Exactly the same hardware/software , when I move the setup to my works WiFi THEN I HAVE NOT any ESP Free Heap memory "Auto" reduction... I can suppose that something is wrong in the TCP/IP stack but I am not software engineer. Please try to help me. The important point is that with all the same except the routers the behaviour changes dramatically from working OK ( when at work WiFi ) to very fast heap auto reduction ( when at home with 4G router ).
Bert Melis
@bertmelis
@brutzler: softwareserial should work, it isn't capable of setting data/parity/stop bit though.
an-erd
@an-erd
@hreintke Thanks!
brutzler
@brutzler
Is SerialEvent() atm working on an ESP?
oh, sorry. SerialEvent is not implemented
but it is hardly of any use. It's just a function call at every loop(). It is NOT interrupt-based or something async-like.
Benjamin Burns
@benjamincburns
Are there people who work full time on esp8266/Arduino, or is it entirely a part-time/volunteer effort?
Also if ESP8266 core is LGPL, I assume that everything depending on esp8266/Arduino must be made open source under LGPL or another compatible license, correct? That is, it'd seem there's likely no way to dynamically link to only that component
Clemens Kirchgatterer
@everslick
but providing object files fulfils the LPGL requirement for being able to relink the binary with newer versions of the COre.
Bert Melis
@bertmelis
It's only needed to open the source when you're distributing your code. If you keep it private you don't have to do anything.
Clemens Kirchgatterer
@everslick
@bertmelis no need to provide source code even when distributeing
it is LGPL and not GPL