Fixed bug in Arduino wifi-examples (write was called rather than read in a network function).