-
Notifications
You must be signed in to change notification settings - Fork 54
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
Choosing between WiFi and Ethernet during runtime #128
Comments
Making multiple interfaces available would be possible, but this is not currently planned. Out of curiosity, in what situations would both Ethernet and WiFi interfaces be needed? |
The one could be the Backup of the other ohne if for example wired would fail you could use WiFi till you fix wired again |
Is it difficult to switch Ethernet/WiFi in the preprocessor (e.g., #ifdef) and rewrite the program again? Do you want to make it so that it is impossible to rewrite, and if you start the program while pressing some physical button, it will switch to Ethernet/WiFi? |
Hi hideakitai,
I am working on an Artnet-device I want to give to a user. The user should be able to use the device without setting up an environment and programming the device. Instead they should be able to use a graphical user interface (display and rotary encoder or web interface) to configure the device.
The user might not have WiFi available or is worried about interference and would rather choose cable (Ethernet).
On the other hand, the device might need to work without cable (e.g. battery powered) and only WiFi is an option.
I want the user to be able to choose between the two Interfaces depending on their needs. But again, without the need of programming the device only via a user interface (during runtime).
Am 22. Dezember 2024 19:46:46 MEZ schrieb Hideaki Tai ***@***.***>:
…Is it difficult to switch Ethernet/WiFi in the preprocessor (e.g., #ifdef) and rewrite the program again? Do you want to make it so that it is impossible to rewrite, and if you start the program while pressing some physical button, it will switch to Ethernet/WiFi?
--
Reply to this email directly or view it on GitHub:
#128 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Okay, I see several requests to use both Wi-Fi and Ethernet. I don't know when I can support this, as I am working on it in my spare time, but I will look into improving the ability to use multiple backends simultaneously. Of course, pull requests are welcome. |
This issue is similar to #85 but I was not able to solve it the way it was suggested.
Situation:
The user shall be able to choose between Art-Net via WiFi or Ethernet during runtime.
Initially I thought, I could pass the interface of choice to a generalized Artnet class (e.g an
artnet.setInterface()
method) . I realized, that this is not possible. Therefore, I tried to have one instance of each class using only one of the two.When including
ArtnetWiFi.h
ANDArtnetEther.h
I get a compiler error, when parsing Artnet (ethernet). That is not surprising since the library documentation explicitly says NOT to include both.Here is my minimal example:
These are the compiler errors
I wonder if there is any way I can support both interfaces on runtime.
Information to my setup:
Board: Arduino Nano ESP32
ArtNet: 0.8.0
Ethernet: 2.0.2
The text was updated successfully, but these errors were encountered: