Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
James
@WanaGo
it uses the exact same code the first attempt as with every other attempt
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
Bert Melis
@bertmelis
yeah, you "need to do everything that enables the user to replace/improve/... the LGPL code"
Clemens Kirchgatterer
@everslick
exactly
if you hand over the object files and build script together with the binary all is good.
Mike Kranidis
@mikekgr

Any kind soulmate to help me?

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
I need some help with debugging my library.
I always have an exception 28 when running my code
the stackdump doesn't give my any clues
I was thinking of using GDB, but my lib uses the Serial port so I don't think I can use this debugging tool
any suggestions?
Bert Melis
@bertmelis
Suppose I use a wifiserver to print debug messages, will the stackdump/GDB-messages also be sent via the wifiserver? Or will the esp be crashed before it is able to send the messages?