Replies: 11 comments 13 replies
-
Can you tell me more about your use case? |
Beta Was this translation helpful? Give feedback.
-
I write a library for sACN. I need to see if the user takes the original Ethernet library for WIZnet or Teensy 4.1 with QNEthernet |
Beta Was this translation helpful? Give feedback.
-
So is this code that is supposed to run on multiple platforms? |
Beta Was this translation helpful? Give feedback.
-
YES #ifndef QNETHERNET_H
#define QNETHERNET_H This is a standard procedure when writing libraries. |
Beta Was this translation helpful? Give feedback.
-
Why not check for the platform itself? Eg. ARDUINO_TEENSY41. |
Beta Was this translation helpful? Give feedback.
-
Because you can use Teensy also with external Wiznet chips. |
Beta Was this translation helpful? Give feedback.
-
Can you tell me more about what you would do differently for every case for which you need to tell the difference? For example, what’s different about Teensy 4.1 with built-in Ethernet vs. Teensy 4.1 with Wiznet vs. some other platform with Wiznet? |
Beta Was this translation helpful? Give feedback.
-
I’ll add that I have lots of experience with sACN. |
Beta Was this translation helpful? Give feedback.
-
My library is using Multicast which works very different in LWIP than with WIZnet. |
Beta Was this translation helpful? Give feedback.
-
What about using C++’s |
Beta Was this translation helpful? Give feedback.
-
I’m going to think more about this. I’m trying to think of ways to make this more helpful, and what I’m coming up with is an externally-set #define for the project. This is easy in PlatformIO ( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to check if the QNEthernet library is used.
For example I want to do following code:
Is this possible or is there another way?
Beta Was this translation helpful? Give feedback.
All reactions