Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting port-pins #123

Open
KLelong opened this issue Feb 15, 2025 · 1 comment
Open

Setting port-pins #123

KLelong opened this issue Feb 15, 2025 · 1 comment

Comments

@KLelong
Copy link

KLelong commented Feb 15, 2025

Hi,
A while ago I was experimenting with the V1-software on an ESP32-wroom-board. Worked fine.
Now I flashed an example of the V3-software, but it seemed there is no communication on the serial TX-pin.
So I wondered what pins are used. In V1, you had to set the pins with e.g. VitoWiFi.setup(&Serial2, 16, 17);
I then modified the example : #define SERIAL1 Serial2 so it uses Serial2. Now the is some communication on the Tx2-pin of the board.
Since those serial pins can be located (almost) anywhere, it would be nice to be able to define which pins to use.

I have to mount my hardware on my heater to see if it really works.

@bertmelis
Copy link
Owner

I didn't implement this feature in VitoWiFi itself.

You can however do this in your code because you have access to all the Serial objects. Just call Serial.setPins(...) and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants