Sending IP to blynk server LCD

I have a problem maybe you can help with.

When I send this ip in the image to be displayed on the server(my app LCD) I’m getting gibberish 1811982528 to be exact.
I’m aware of little endian and big endian but not sure if that’s the cause or if my ip is just interpreted as numbers.

have u any suggestions that can help me

Can you post the code that you use? This is not very much information to go on :slight_smile:

Ip = Ethernet.localIP()

Blynk.virtualWrite(V4, Ip);

If I serial print or print to an LCD the ip is normal but when I send it to blynk app it is gibberish

Majority of my code is in this thread

Maybe try this:

Ip = Ethernet.localIP();

String stringIP = String(Ip);

Blynk.virtualWrite(V4, stringIP);

There is more on stringifying things here:

1 Like

try this:

String Ip = Ethernet.localIP().toString();

Blynk.virtualWrite(V4, Ip);

I tried this already without success

Have not tried it this way I will test it and get back to you thanks

1 Like


String ip = String(Ethernet.localIP([0])+"."+String(Ethernet.localIP()[1])+"."+String(Ethernet.localIP()[2])+"."+String(Ethernet.localIP()[3]);

This was the best I could do and it works.
Everything else seemed impossible


Hmmm, a bit over the top, but if it works, it works! Thanks for sharing!

Yes I agree … I’m assuming the Ips are stored as integers , ill dump the String conversions on the Ips sections and see what happens later, otherwise there is no other way that I know to accomplish it

I’m not sure about that Integer, I think they defined the IP as a custom datatype. Not sure how that would work. Maybe @Dmitriy can resolve this for us :slight_smile: