|
@@ -48,12 +48,11 @@ sig_handler(int signo)
|
48
|
48
|
void nrf_handler () {
|
49
|
49
|
std::cout << "Reciever :: " << *((uint32_t *)&(comm->m_rxBuffer[0])) << std::endl;
|
50
|
50
|
}
|
51
|
|
-//! [Interesting]
|
52
|
51
|
|
53
|
52
|
int
|
54
|
53
|
main(int argc, char **argv)
|
55
|
54
|
{
|
56
|
|
-//! [Interesting]
|
|
55
|
+
|
57
|
56
|
comm = new upm::NRF24L01(7, 8);
|
58
|
57
|
comm->setSourceAddress ((uint8_t *) local_address);
|
59
|
58
|
comm->setDestinationAddress ((uint8_t *) broadcast_address);
|
|
@@ -72,6 +71,6 @@ main(int argc, char **argv)
|
72
|
71
|
std::cout << "exiting application" << std::endl;
|
73
|
72
|
|
74
|
73
|
delete comm;
|
75
|
|
-//! [Interesting]
|
76
|
74
|
return 0;
|
77
|
75
|
}
|
|
76
|
+//! [Interesting]
|