![Winmate W07FA3S-PCO1-POE Quick Start Up Manual Download Page 39](http://html1.mh-extra.com/html/winmate/w07fa3s-pco1-poe/w07fa3s-pco1-poe_quick-start-up-manual_987133039.webp)
- 39 -
c. Read/ Write Command
// ***************************************************************************
//
Parameter:
// write_data
static char write_data[] = "Hello World!!";
//
// ***************************************************************************
static void
cmd_write
(void)
{
write(COMPort_fd, &write_data[
0
],
sizeof
(
write_data
));
// send character greeting
usleep
((
sizeof
(write_data)
+
25
) *
100
);
char
buf[
200
];
int
n = read(COMPort_fd, buf,
sizeof
(
buf
)
);
// read up to 100 characters if ready to
read
printf
(
"Read Data = %s\n"
, buf);
}
Summary of Contents for W07FA3S-PCO1-POE
Page 31: ...31 Accessories Dimensions...