* OF THE POSSIBILITY OF SUCH DAMAGE
*/
+#include "TxThroughput.h"
+
/**
+ * This application is used more for characterization rather than a
+ * test. It measures the maximum radio throughput using the largest
+ * message payload size, and does not use low power listening.
+ *
* @author David Moss
*/
-#include "TxThroughput.h"
-
module TxThroughputP {
uses {
interface Boot;
/***************** Timer Events ***************/
event void Timer.fired() {
- ((ThroughputMsg *) call SerialAMSend.getPayload(&serialMsg))->packetsPerSecond = packetsPerSecond;
+ ((ThroughputMsg *) call SerialAMSend.getPayload(&serialMsg, sizeof(ThroughputMsg)))->packetsPerSecond = packetsPerSecond;
packetsPerSecond = 0;
post sendSerial();
}