Manual
M7LL
/
M70LL
Laser
‐
Sensors
HB
‐
M7LL
‐
M70LL
‐
E.doc
page
23
of
23
V20130301
MEL
Mikroelektronik
GmbH,
Breslauer
Str.
2,
85386
Eching
/
Germany
www.MELSensor.com
//number
of
received
data
is
in
dwReceived
}
}
}
}
//release
socket
closesocket(sTCP);
WSACleanup();
}
Use
the
“send”
function
for
sending
data
to
the
sensor.
Like
with
the
„recv“
function
it
is
necessary
to
set
up
connection
to
the
sensor
before
using
the
send
fucntion.
In
the
above
example
you
could
replace
„recv“
‐
function
with
send“
function.
//
Data
Buffer
//
data
buffer
contains
the
command
//
to
set
the
sensor
in
single
mode
char
chBuffer[2]
=
{0x14,
0x01};
send(sTCP,
chBuffer,
2,
NULL);
************************************************************************************************************