![Tews Technologies TIP815-SW-12 Manual Download Page 11](http://html1.mh-extra.com/html/tews-technologies/tip815-sw-12/tip815-sw-12_manual_1093614011.webp)
10
EXAMPLE
#include ”tip815.h”
#define HELLO ”HELLOOOO WORLD”
{
T815_MSG sndbuf;
int
status;
int
path;
...
status = t815_open ( ”/t815A”, &path);
/*
t815_write a message to a TIP815 device.
*/
sndbuf.DID
= 123;
sndbuf.len
= 14;
memcpy(sndbuf.data, HELLO, 14);
status = t815_write ( path, 0, &sndbuf );
if (result != E_NOERR) {
/* handle device error */
}
....
}
RETURNS
E_NOERR if write was successful or an appropriate error code
INCLUDE FILES
tip815.h