Display IPadress, doesn't work..


hey!
i want arduino's ip address displayed on web page i'm not getting right. instead of printing 100.10.10.35, prints 556283684, doing wrong?


code: [select]

string message = "<html>....etc............";

message += (wifi.localip());

message += ".......bla..bla........</html>";
  server.send(200, "text/html", message);

code: [select]

message += (wifi.localip());


try
code: [select]
message += (wifi.localip(0));
message += (".");
message += (wifi.localip(1));
message += (".");
message += (wifi.localip(2));
message += (".");
message += (wifi.localip(3));


Arduino Forum > Using Arduino > Programming Questions > Display IPadress, doesn't work..


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???