Example Code for Arduino-Router Connection and TCP Client

Last revision 2025/12/24

First of all, we will bring you a step by step tutorial to lead finish the Wido router connection configuration and make it work as a TCP client connected to the local server.

Hardware Preparation

Software Preparation

Operation Steps

  1. Open the sample code, which is named buildtest.
  2. Upload the sample code to Wido and check the Serial monitor after programming. You will see the information printed including the MAC address and local router information detected by Wido.

DFR0321-Serial monitor

  1. Update the SSID and password configuration in your code!
//Please enter the SSID and password of the router you want to connect
#define WLAN_SSID       "myNetwork"        // cannot be longer than 32 characters!
#define WLAN_PASS       "myPassword"
  1. Then upload the sample sketch again.And after several seconds. You will see the effect, like the picture attached.

DFR0321-result

Was this article helpful?

TOP