USR-TCP232-302 User Manual
h.usriot.com
Jinan USR IOT Technology Limited
52 / 53
59.
//send data
60.
sendlen = strlen(sendbuf) +1;
61.
retlen = 0;
62.
leftlen = sendlen;
63.
ptr = sendbuf;
64.
// while(leftlen)
65.
{
66.
retlen = send(sock_fd, ptr, sendlen, 0);
67.
if(retlen < 0)
68.
{
69.
if(errno == EINTR)
70.
retlen = 0;
71.
else
72.
exit(1);
73.
}
74.
leftlen -= retlen;
75.
ptr += retlen;
76.
}
77.
close(sock_fd);
78. }
6. Contact Information
Company: Jinan USR IOT Technology Limited.
Address: Floor 11,Building1,No.1166 Xinluo Street, Gaoxin Distric, Jinan, Shandong, 250101 China.
Tel: 86-531-55507297 86-531-88826739-803
Web: http://www.usriot.com/
Support:http://h.usriot.com/
Email: [email protected]
7. Disclaimer
The document provides information about USR-TCP232-T2 module, it doesn’t grant any license to the
intellectual property rights. Except the responsibility declared in the product sale clause, USR does not assure
any other responsibilities. In addition, USR does not make any warranties for the sale and use of this product,
including the suitability of products for a particular purpose, merchant ability or fitness for any patent, copyright
or other intellectual property infringement.USR may make changes to specifications and products description
without notice.