Skip to content

Instantly share code, notes, and snippets.

@dkgrieshammer
Forked from drewler/epd_ipd.c
Last active May 6, 2019 20:10
Show Gist options
  • Save dkgrieshammer/3d0e9a341ce3ad18a434c7b0ef243aea to your computer and use it in GitHub Desktop.
Save dkgrieshammer/3d0e9a341ce3ad18a434c7b0ef243aea to your computer and use it in GitHub Desktop.
Arduino - IPAddress to char*
char IP[] = "xxx.xxx.xxx.xxx"; // Buffer
IPAddress ip = WiFi.localIP();
ip.toString().toCharArray(IP, 16);
//IP now contains IPAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment