![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
master to control sensor node
Dependencies: mbed
Diff: gateway.cpp
- Revision:
- 6:9daa56b8a027
- Parent:
- 5:85fea4ceaa1f
--- a/gateway.cpp Wed Nov 11 00:47:05 2015 +0000 +++ b/gateway.cpp Tue Nov 17 19:13:55 2015 +0000 @@ -31,9 +31,9 @@ * @param data A pointer to a char array to hold the data * @param maxLength The max amount of data to read. */ -int rf_receive(char *data, uint8_t maxLength) +int rf_receive(char *data, uint8_t maxLength, uint8_t *rssi) { - uint8_t len = mrf.Receive((uint8_t *)data, maxLength); + uint8_t len = mrf.Receive((uint8_t *)data, maxLength,rssi); uint8_t header[8]= {1, 8, 0, 0xA1, 0xB2, 0xC3, 0xD4, 0x00}; if(len > 10) {