Close
0%
0%

Ameba Arduino: Retrieve Universal Time (UTC)

In this project, we connect Ameba to WiFi. Then send NTP (Network Time Protocol, RFC 1305) request to retrieve UTC.

Similar projects worth following
0 followers
In this example, we connect Ameba to WiFi. Then send NTP (Network Time Protocol, RFC 1305) request to NTP server using UDP. After receiving the NTP request, the NTP server replies current UTC (Coordinated Universal Time) packet. We will parse the UTC packet to show current UTC time.

For more information: 

  • 1 × RTL8722DM MINI

  • 1
    Code Edition

    Open the example. “File” -> “Examples” -> “AmebaWiFi” -> “WiFiUdpNtpClient”

    8-1Modify the highlighted code section (ssid, password, keyindex) to connect to your WiFi network.8-2

  • 2
    Upload and Execution

    Compile the code and upload it to Ameba. After pressing the Reset button, Ameba connects to WiFi and sends NTP request packet to NTP server “129.6.15.28”. We parse the replied packet and show UTC time in serial monitor:8-2

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates