stm32duino / STM32Ethernet

Arduino library to support Ethernet for STM32 based board
151 stars 41 forks source link

New init procedure #18

Closed sstaub closed 5 years ago

sstaub commented 5 years ago

The new init procedure, using the build in mac Address doesn't work. The problem is that overloading doesn't work because "IPAddress local_IP" and "uint8_t * mac" are recognized as the same type. So you have decide which type procedure should we use, the stupid old style or my new style, both at the same time is not possible. When using the old style I can make the macAddressDefault(void) function as a public type.

fpistm commented 5 years ago

Strange as IPAddress is a class. I will have to check that. Thanks for report.

sstaub commented 5 years ago

Found the problem: uint8_t ip[] = {10, 101, 1, 201}; doesn't work IPAddress ip(10, 101, 1, 201); this works For init you must take the class IPAddress.

fpistm commented 5 years ago

@sstaub this one could be close?

sstaub commented 5 years ago

yes