IPv6 - Ameba as IPv6 Server/Client over TCP
Materials
AMB82-mini x 1
Example
Introduction
This example shows how Ameba can communicate on the local network using Internet Protocol version 6 over TCP.
Note
This example only works after you have set up the server and then configure the client accordingly.
Procedure
Step 1. IPv6TCPServer
Open the example, “Files” → “Examples” → “WiFi” → “IPv6TCPServer”.
In the sample code, modify this section to enter the information required (ssid, password) to connect to your WiFi network.
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,
Step 2. IPv6TCPClient
Now take the second AMB82 Mini and open another example, “Files” → “Examples” → “WiFi” → “IPv6TCPClient”.
In the sample code, modify this section to enter the information required (ssid, password) to connect to your WiFi network.
From the previous step, we obtained the server’s IPv6 address. Now, copy this address into the “IPv6TCPClient” example.
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.