SENA HD1100 User Manual

Page 38

Advertising
background image

Starter Kit and User Manual for the HelloDevice 1100

35

data[0] = COMMAND_SET;
data[1] = (byte) ((outdata >> 8) & 0x000000ff);
data[2] = (byte) (outdata & 0x000000ff);

// Initialize socket
try {

socketTCP = new Socket(InetAddress.getByName(m_host), m_port);

socketTCP.setTcpNoDelay(trujhe);

socketTCP.getOutputStream().write(data, 0, data.length);

socketTCP.close();

} catch (Exception e) {

System.out.println("Err: " + e);

}

}

Advertising