1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Added a method to read data into a char buffer so that character-based (rather than byte-based) operations don't require a cast. As requested by Tom Igoe. Part of the fix to issue 439.

This commit is contained in:
amcewen
2011-01-13 17:55:08 +00:00
parent a3c7a1bedd
commit 5caad5bdb4
2 changed files with 4 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void loop() {
Serial.println(Udp.remotePort());
// read the packet into packetBufffer
Udp.read((byte*)packetBuffer,UDP_TX_PACKET_MAX_SIZE);
Udp.read(packetBuffer,UDP_TX_PACKET_MAX_SIZE);
Serial.println("Contents:");
Serial.println(packetBuffer);