1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-01 03:47:23 +03:00

updating UDP library and examples with M. Margolis' changes and examples.

This commit is contained in:
Tom Igoe
2010-09-17 14:17:01 +00:00
parent ae0c8770ac
commit addbdd7949
4 changed files with 238 additions and 0 deletions

View File

@ -53,6 +53,9 @@ public:
uint16_t sendPacket(const char[], uint8_t *, uint16_t); //send a string as a packet to specified peer
int readPacket(uint8_t *, uint16_t); // read a received packet
int readPacket(uint8_t *, uint16_t, uint8_t *, uint16_t *); // read a received packet, also return sender's ip and port
// readPacket that fills a character string buffer
int readPacket(char *, uint16_t, uint8_t *, uint16_t &);
};
extern UdpClass Udp;