support software-defined ethercat

This commit is contained in:
Forsworns
2022-02-28 10:27:30 +08:00
parent 287cd1bd89
commit 392591e50d
14 changed files with 889 additions and 22 deletions
@@ -101,7 +101,7 @@ int AdapterEthernetTest(void)
const char *ip = "10.10.100.50";
const char *port = "12345";
enum NetRoleType net_role = SERVER;//CLIENT
enum NetRoleType net_role = CLIENT;//SERVER
enum IpType ip_type = IPV4;
AdapterDeviceConnect(adapter, net_role, ip, port, ip_type);
@@ -333,7 +333,7 @@ static int Hfa21EthernetConnect(struct Adapter *adapter, enum NetRoleType net_ro
{
int ret = 0;
char hfa21_ethernet_cmd[128];
char net_role_string[6] = {0};
char net_role_string[7] = {0};
/*Step1 : enter AT mode*/
Hfa21EthernetInitAtCmd(adapter->agent);