the nerd not working plz help

hi i have mkr 1000 bundle but am having problems with it the problem is ipadress does not name a type the project is the nerd i have the other part of sketch if needed

#include <RTCZero.h>

/*************************************************
Start an UDP connection to get the time in unix,
then set the real time clock (rtc)
************************************************/

unsigned int localPort = 2390; // local port to listen for UDP packets
IPAddress ip(129,6,15,28); // NTP time stamp is in the first 48 bytes of the message
byte packetBuffer[ NTP_PACKET_SIZE]; //buffer to hold incoming and outgoing packets
const int GMT = 1 * 60 * 60; //change this to adapt it to your time zone hoursminutesseconds

unsigned long epoch;

void GetCurrentTime() {

int numberOfTries = 0, maxTries = 6;
do {
epoch = readLinuxEpochUsingNTP();
numberOfTries++;
}
while ((epoch == 0) || (numberOfTries > maxTries));

if (numberOfTries > maxTries) {
Serial.print("NTP unreachable!!");
while (1);
}
else {
Serial.print("Epoch received: ");
Serial.println(epoch);
rtc.setEpoch(epoch + GMT);

Serial.println();
}

}

unsigned long readLinuxEpochUsingNTP()
{
Udp.begin(localPort);
sendNTPpacket(timeServer); // send an NTP packet to a time server
// wait to see if a reply is available
delay(1000);

if ( Udp.parsePacket() ) {
Serial.println("NTP time received");
// We've received a packet, read the data from it
Udp.read(packetBuffer, NTP_PACKET_SIZE); // read the packet into the buffer

//the timestamp starts at byte 40 of the received packet and is four bytes,
// or two words, long. First, esxtract the two words:

unsigned long highWord = word(packetBuffer[40], packetBuffer[41]);
unsigned long lowWord = word(packetBuffer[42], packetBuffer[43]);
// combine the four bytes (two words) into a long integer
// this is NTP time (seconds since Jan 1 1900):
unsigned long secsSince1900 = highWord << 16 | lowWord;

// now convert NTP time into everyday time:
// Unix time starts on Jan 1 1970. In seconds, that's 2208988800:
const unsigned long seventyYears = 2208988800UL;
// subtract seventy years:

Udp.stop();
return (secsSince1900 - seventyYears);
}

else {
Udp.stop();
return 0;
}
}

// send an NTP request to the time server at the given address
unsigned long sendNTPpacket(IPAddress & address)
{
// set all bytes in the buffer to 0
memset(packetBuffer, 0, NTP_PACKET_SIZE);
// Initialize values needed to form NTP request
// (see URL above for details on the packets)

packetBuffer[0] = 0b11100011; // LI, Version, Mode
packetBuffer[1] = 0; // Stratum, or type of clock
packetBuffer[2] = 6; // Polling Interval
packetBuffer[3] = 0xEC; // Peer Clock Precision
// 8 bytes of zero for Root Delay & Root Dispersion
packetBuffer[12] = 49;
packetBuffer[13] = 0x4E;
packetBuffer[14] = 49;
packetBuffer[15] = 52;

// all NTP fields have been given values, now
// you can send a packet requesting a timestamp:
Udp.beginPacket(address, 123); //NTP requests are to port 123
Udp.write(packetBuffer, NTP_PACKET_SIZE);
Udp.endPacket();
}

void printTime() {
// Print date...
Serial.print(rtc.getDay());
Serial.print(" / ");
Serial.print(rtc.getMonth());
Serial.print(" / ");
Serial.print(rtc.getYear());
Serial.print("\t");

// ...and time
print2digits(rtc.getHours());
Serial.print(": ");
print2digits(rtc.getMinutes());
Serial.print(": ");
print2digits(rtc.getSeconds());
Serial.println("");

}

void print2digits(int number) {
if (number < 10) {
Serial.print("0");
}
Serial.print(number);
}
ing problems with the projects

Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. If your browser doesn't show the posting toolbar then you can just manually add the code tags:
[code]``[color=blue]// your code is here[/color]``[/code]
Using code tags and other important information is explained in the How to use this forum post. Please read it.

To fix the error, add the following near the top of your sketch:

#include <IPAddress.h>

When using other network libraries, you might notice it's not necessary to do this. That is because those libraries contain an #include directive for this file.

thank you i will try that.also i will read that post :slight_smile:

You can refer the one " Arduino Mkr1000 - MKR1000 - Arduino Forum "

I recommended some reference about wifi connection

Before it, check your firmware version+update
'
Enjoy your mkr1000!