Fixed the problem with getting empty data string.
Got rid of flushing. Weren't doin' nerthin'.
Cleanup.
Got a version that survives temporarily unplugging the wifi.