ntruchsess / arduino_uip

UIPEthernet: A plugin-replacement of the stock Arduino Ethernet library for ENC28J60 shields and breakout boards. Full support for persistent (streaming) TCP-connections and UDP (Client and Server each), ARP, ICMP, DHCP and DNS. Build around Adam Dunkels uIP Stack. Further developed version can be found on https://github.com/UIPEthernet/UIPEthernet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to send packet over tcp with static ip

studentisme opened this issue · comments

I used the example---TCPClient.
my arduino is use Dynamic IP.
my pc is use static IP.
I want to make arduino send package to pc with tcp.

uint8_t mac[6] = {0x74,0x69,0x69,0x2D,0x30,0x33};
IPAddress subnet(255,255,255,0);
IPAddress dnsServerIP(140,xxx,113,1);
IPAddress gateway(203,xxx,101,253);
IPAddress ip = (192,168,0,103);
Ethernet.begin(mac,ip,dnsServerIP,gateway,subnet);

but IPAddress ip is wrong.
I don't know how to fix it.

and if I don't add any code.
example will connected 1 time.
but I couldn't do anything.
could anyone help me or teach me how to send packet with tcp stability