void drawingData(ArNetPacket *packet) { int x, y; int numReadings; int i; numReadings = packet->bufToByte4(); if (numReadings == 0) { printf("No readings for sensor %s\n", client.getName(packet)); } printf("Readings for %s:", client.getName(packet)); for (i = 0; i < numReadings; i++) { x = packet->bufToByte4(); y = packet->bufToByte4(); printf(" (%d %d)", x, y); } printf("\n\n"); }