forked from electro/esp-irblaster
implement modbus tcp slave at port 502, reg1=1042 as device ID
This commit is contained in:
@@ -72,7 +72,7 @@ static void telnetsrv_handle(TcpdClient_t client, char *buf, int nbytes)
|
||||
/**
|
||||
* Socket read handler
|
||||
*/
|
||||
esp_err_t read_fn(Tcpd_t serv, TcpdClient_t client, int sockfd)
|
||||
static esp_err_t read_fn(Tcpd_t serv, TcpdClient_t client, int sockfd)
|
||||
{
|
||||
char buf[64];
|
||||
int nbytes = read(sockfd, buf, sizeof(buf));
|
||||
|
||||
Reference in New Issue
Block a user