![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
dd
Dependencies: xtoff2 RF24Network mbed
Fork of xtoff3 by
Diff: Ontvanger.cpp
- Revision:
- 15:f8aad6d1db68
- Parent:
- 13:f54dfb74247e
--- a/Ontvanger.cpp Thu Jul 12 08:56:54 2018 +0000 +++ b/Ontvanger.cpp Fri Jul 13 06:28:33 2018 +0000 @@ -25,6 +25,10 @@ return network.available(); } +void Ontvanger::printDetails() +{ + radio.printDetails(); +} payload_t Ontvanger::read() { @@ -37,10 +41,10 @@ return payload_rx; } -bool Ontvanger::write(state_Packet message) +bool Ontvanger::write(payload_t message) { RF24NetworkHeader header_tx(other_node); - state_Packet packet; + payload_t packet; packet = message; return network.write(header_tx,&packet,sizeof(packet));