mirror of
https://github.com/eclipse/upm.git
synced 2025-09-13 05:34:52 +03:00
nrf24l01: updated receive/transmit examples to match new C++ API
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@@ -60,7 +60,7 @@ main(int argc, char **argv)
|
|||||||
comm->configure ();
|
comm->configure ();
|
||||||
comm->setSpeedRate (upm::NRF_250KBPS);
|
comm->setSpeedRate (upm::NRF_250KBPS);
|
||||||
comm->setChannel (99);
|
comm->setChannel (99);
|
||||||
comm->dataRecievedHandler = nrf_handler;
|
comm->setDataReceivedHandler (nrf_handler);
|
||||||
|
|
||||||
signal(SIGINT, sig_handler);
|
signal(SIGINT, sig_handler);
|
||||||
|
|
||||||
|
@@ -58,7 +58,7 @@ main(int argc, char **argv)
|
|||||||
comm->setPayload (MAX_BUFFER);
|
comm->setPayload (MAX_BUFFER);
|
||||||
comm->setChannel (99);
|
comm->setChannel (99);
|
||||||
comm->configure ();
|
comm->configure ();
|
||||||
comm->dataRecievedHandler = nrf_handler;
|
comm->setDataReceivedHandler (nrf_handler);
|
||||||
|
|
||||||
signal(SIGINT, sig_handler);
|
signal(SIGINT, sig_handler);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user