implement modbus tcp slave at port 502, reg1=1042 as device ID

This commit is contained in:
2022-08-19 23:56:16 +02:00
parent c83042658e
commit 3efa1b6665
16 changed files with 1220 additions and 1 deletions
+1 -1
View File
@@ -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));