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

Compile error #6

Open
NPreda opened this issue Feb 3, 2019 · 3 comments
Open

Compile error #6

NPreda opened this issue Feb 3, 2019 · 3 comments

Comments

@NPreda
Copy link

NPreda commented Feb 3, 2019

Getting the following error during compliation in the "artNet" file:

exit status 1
ambiguous overload for 'operator+' (operand types are 'IPAddress' and 'int')

relating to the following lines of code:
replyBuffer[18] = highByte(subnet+1); //subnet hi-lo
replyBuffer[19] = lowByte(subnet+1);

@DrewAspinwall
Copy link

@NPreda I had the same issue and found this answer worked for the time being.

I've found out that this only happens with the latest 2.5.0 ESP8266 Arduino core, versions before that work fine. This is because IPv6 is now internally supported by ESP8266 and it can't make sure that it's an IPv4 address for this operation. WLED Issue.

I would leave the issue open so someone can start on a PR with similar IPv6 fix (that just aint #me).

@jtthewoodworker
Copy link

Hi. Did this ever get resolved? What's the correct fix? I'm getting the same compile error as @NPreda.

@bennigraf
Copy link

Hey,

I got the same error trying to put this software on a Wemos D1 Mini (clone?) using the current Arduino IDE. I solved this by replacing the lines mentioned above (artNet.ino:125-126) with

  replyBuffer[18] = highByte(subnet.v4()+1);  //subnet hi-lo
  replyBuffer[19] = lowByte(subnet.v4()+1);

(Note the calls to the v4() method that returns the v4 representation of the IPAddress.)

I don't know if that has any implications on the firmware in general, though. I don't know the specifics of the ArtNet protocol, but I'd guess that there's no support vor IPv6 yet anyways. So @mtongnz – if you don't have any objections, I could also file a PR.

(In IPAddress.h there's also a flag named LWIP_IPV6 but setting this to 0 didn't fix the problem for me. Maybe I did something wrong though, I'm not very experienced in this language.)

Best,
Benjamin.

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

4 participants