![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
master to control sensor node
Dependencies: mbed
packet.h
- Committer:
- mfrede
- Date:
- 2015-11-17
- Revision:
- 6:9daa56b8a027
- Parent:
- 2:5d88c51f53dc
File content as of revision 6:9daa56b8a027:
#ifndef LAB5PACKET #define LAB5PACKET class packet { #define HELLO_TYPE 1 #define ROUTE_REQ_TYPE 2 #define ROUTE_ACK_TYPE 3 #define DATA_TYPE 4 public: packet(unsigned short from, unsigned short to, unsigned short TYPE, float data1, float data2) { TTL = 4; from = from; to = to; TYPE = TYPE; data1 = data1; data2 = data2; }; unsigned short from; unsigned short to; unsigned short TTL; unsigned short TYPE; float data1; float data2; }; #endif