Attached is the example code that I am trying to get to work. Everything up until the part where it finds the ip works. It gets stuck in that while loop with the ip set at 0. I have no idea what to add to actually find the ip. Any help would be much appreciated. Thanks!
WebClient.ino (6.86 KB)
Update:
getHostByName(WEBSITE, &ip)
Specifically the above function is what is in question. I am having difficulty having this change the variable ip. I am not completely familiar with C, however, this is the defined function from the library.
uint16_t ping(uint32_t ip, uint8_t attempts=3, uint16_t timeout=500, uint8_t size=32);
uint16_t getHostByName(const char *hostname, uint32_t *ip);