Getting error in client.write(buf,len)..please help me

Can any one please help me

#include <ESP8266WiFi.h>

const char* ssid = “HotSpot4”; // Your ssid
const char* password = “hotspot4”; // Your Password
const char* host = “192.168.2.227”; //ip address
uint8_t helloNieuw[10] = {0x29,0x00,0x00,0x00,0x00,0x01,0x02,0x06,0x24,0x5a};

void setup()
{

Serial.begin(115200);
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
delay(1000);
int port=1234;
Serial.println(“connecting…”);
WiFiClient client;
if (client.connect(host,port)) {
Serial.println(“connected”);
client.write(helloNieuw, 10);
} else {
Serial.println(“connection failed”);
}Serial.begin(115200);
delay(10);

// We start by connecting to a WiFi network

Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);

}

void loop()
{
WiFiClient client;
if (client.available()) {
char c = client.read();
Serial.print(c);
}

if (!client.connected()) {
Serial.println();
Serial.println(“disconnecting.”);
client.stop();
for(;:wink:
;
}
}

C:\Users\Manjunatha\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:5: error: request for member ‘read’ in ‘source’, which is of non-class type ‘unsigned char [10]’

source.read(buffer.get(), will_send);

^

exit status 1
Error compiling.

*** draft***

client.write((const uint8_t *)helloNieuw, 10);

Normally you would not need the cast, but this class has this method

template <typename T>
  size_t write(T& source, size_t unitSize);

that expects source to have a read() method.