Open rorso opened 4 months ago
But the running code still sends on the tx and not on the GPIO15 pin
Did you mean "...sends on the GPIO1 and not..."?
Did you mean "...sends on the GPIO1 and not..."?
Yes, it still communicates on the original pins, as if I had not tried to swap them. The parameters are accepted, but do not show any effect.
Strange!
I'm using the library VitoWifi for communication with the Optolink interface. For ESP8266 VitoWifi only accepts the Serial
object of the Arduino platform. I have not yet investigated if the library initializes pin configuration (beside baud rate etc.)
As it's not easy for me to test whether swapping pins works (everything is soldered), you can play around modifying the Serial
object by using on_boot
(https://esphome.io/components/esphome#on-boot).
Example:
esphome:
...
on_boot:
- lambda: Serial.swap();
For more information about the Serial
object see https://arduino-esp8266.readthedocs.io/en/latest/reference.html#serial
Thank you for your code adaption. I tried as you suggested with the following configuration.
I was allowed to configure the alternate GPIO pins - and just these. Others are rejected.
But the running code still sends on the
tx
and not on theGPIO15
pin.