- Fri Oct 14, 2016 10:33 am
#56515
Hey! I'm working with esp8266 Arduino (via Adafruit Feather Huzzah) I'm trying to continuously write 3 characters to a TCP socket, but there's nothing continuous about it. It has a very regular pattern of high and low bandwidth. It writes at a very high rate for ~10 seconds, and then a very low rate for 4 seconds (see graph of received packets)
https://www.dropbox.com/s/02g9ht4olp8io ... 9.png?dl=0 I believe this to be an easily reproducible issue.
Code is here:
Code: Select all//...
void loop() {
if (!client.connect(host, port)) {
delay(10);
return;
}
for (int i=0; i < 1024; i++){
client.print(String(analogRead(A0)) + "\r\n");
delay(1);
}
}
Number of received messages.
Any ideas if it's the wifi driver, something in the chip or hardware timers that I can't get around... or maybe something else?