| 371 | } |
| 372 | |
| 373 | int startUDP(SOCKET s, uint8_t* addr, uint16_t port) |
| 374 | { |
| 375 | if |
| 376 | ( |
| 377 | ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && (addr[3] == 0x00)) || |
| 378 | ((port == 0x00)) |
| 379 | ) |
| 380 | { |
| 381 | return 0; |
| 382 | } |
| 383 | else |
| 384 | { |
| 385 | w5500.writeSnDIPR(s, addr); |
| 386 | w5500.writeSnDPORT(s, port); |
| 387 | return 1; |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | int sendUDP(SOCKET s) |
| 392 | { |