Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Only 15 UDP packets / second with W5100S-EVB-Pico possible? #6

Answered by khoih-prog
FeuerSturm asked this question in Q&A
Discussion options

You must be logged in to vote

It's good you spent some more time to investigate, but you still need to understand more about the network / DNS operation.

Try the following code and study then know what you've done wrong (I won't go into details and hope your research will help you better)

#include <Ethernet_Generic.h>

#define USE_HOSTNAME      true

EthernetUDP udp;

const unsigned int port = 21324;

#if !USE_HOSTNAME
  IPAddress myComputerIP = IPAddress(192, 168, 2, 30);
#else
  const char* myComputerName = "MyComputer";
  IPAddress myComputerIP;
#endif

const byte testPacket[] = { 0x04, 0x02, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@FeuerSturm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@FeuerSturm
Comment options

Answer selected by FeuerSturm
Comment options

You must be logged in to vote
3 replies
@khoih-prog
Comment options

@khoih-prog
Comment options

@FeuerSturm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants