IPv6 - Ameba as IPv6 Server/Client over UDP

Materials

Example

Introduction

This example shows how Ameba can communicate on the local network using Internet Protocol version 6 over UDP.

Note

This example only works after you have set up the server and then configure the client accordingly.

Procedure

Step 1. IPv6UDPServer

Open the example, “Files” -> “Examples” -> “WiFi” -> “IPv6UDPServer”.

../../../_images/image0173.png

In the sample code, modify this section to enter the information required (ssid, password) to connect to your WiFi network.

../../../_images/image0273.png

Upload the code, then reset the Ameba by pressing its reset button.

Open Serial Monitor and copy the IPv6 address of the Server for later use,

../../../_images/image0366.png

Step 2. IPv6UDPClient

Now take the second AMB82 Mini and open another example, “Files” -> “Examples” -> “WiFi” -> “IPv6UDPClient”.

../../../_images/image0435.png

In the sample code, modify and enter the information required (ssid, password) to connect to your WiFi network.

../../../_images/image0525.png

From the previous step, we obtained the server’s IPv6 address. Now, copy this address into the “IPv6UDPClient” example.

../../../_images/image0617.png

Upload the code, then reset the Ameba by pressing its reset button.

Open Serial Monitor on the port to the second AMB82 Mini, you should see server and client are sending text message to each other at the same time.

../../../_images/image0713.png
../../../_images/image0811.png