Rework of arduino compatibility in WiFiSTAClass::config#4145
Conversation
|
No idea why the diff took the entire function. |
|
Fixes #4114 |
|
Going to do another iteration of this, after discussion with @d-a-v . |
|
@d-a-v I may have this wrong, but the check we discussed seems to give false positives. The first part of the check calculates that both IP and gateway are in the same subnet for both possible argument orders. The second part of the check was to figure out what to do:
However, consider this example: If the arguments are given in ESP order: In which case the check can't tell which order was used. If the above is correct, then I think it'd be better to stick with this PR as it is. |
|
You are damn right. The test I proposed is not sufficient. |
No description provided.