User Manual
Throughput
The throughput example (located in the Adafruit_WICED_Arduino/examples/WiFi folder) uses AdafruitTCP to test the
TCP throughput between the WICED Feather and another device running 'netcat', which simply listens for incoming
TCP data on the specified port.
Setup
Set your AP details using the WLAN_SSID and WLAN_PASS flags, setting them to the values used by you own access
point:
You also need to set the IP address and port of the server you will be connecting to (the machine where you will be
running netcat):
Running Netcat
Before using this sketch you will need to start netcat and tell it to start listening on the pre-determined port, which can
be done with the following command:
Depending on the version of netcat you are using, you may or may not seeing any feedback right away, but once
netcat starts any incoming characters received will be echoed back to the command line, as shown in the example
below:
To stop netcat (once the test is complete) simply hit CTRL+C.
Compile and Flash
You can then compile and flash your sketch to the WICED Feather using the 'Download' arrow icon at the top of the
#define WLAN_SSID "YOUR SSID HERE"
#define WLAN_PASS "YOUR SSID KEY HERE"
// your local PC's IP to test the throughput
// Run this command to create a server on your PC
// > nc -l 8888
IPAddress server_ip(10, 0, 1, 27);
const uint16_t port = 8888;
$ nc -l 8888
000000000000000000000000000000000000000000000000
111111111111111111111111111111111111111111111111
222222222222222222222222222222222222222222222222
333333333333333333333333333333333333333333333333
444444444444444444444444444444444444444444444444
555555555555555555555555555555555555555555555555
666666666666666666666666666666666666666666666666
777777777777777777777777777777777777777777777777
888888888888888888888888888888888888888888888888
999999999999999999999999999999999999999999999999
© Adafruit Industries https://learn.adafruit.com/introducing-the-adafruit-wiced-feather-wifi Page 190 of 202










