mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
nrf24l01: changed src and dest address
Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
This commit is contained in:
parent
81e1fd281c
commit
d0999cf778
@ -31,8 +31,8 @@
|
|||||||
int running = 0;
|
int running = 0;
|
||||||
upm::NRF24L01 *comm = NULL;
|
upm::NRF24L01 *comm = NULL;
|
||||||
|
|
||||||
uint8_t destAddress[5] = {0x01, 0x01, 0x01, 0x01, 0x02};
|
uint8_t destAddress[5] = {0x01, 0x01, 0x01, 0x01, 0x01};
|
||||||
uint8_t srcAddress[5] = {0x01, 0x01, 0x01, 0x01, 0x01};
|
uint8_t srcAddress[5] = {0x01, 0x01, 0x01, 0x01, 0x02};
|
||||||
|
|
||||||
void
|
void
|
||||||
sig_handler(int signo)
|
sig_handler(int signo)
|
||||||
@ -56,7 +56,7 @@ main(int argc, char **argv)
|
|||||||
comm->setSourceAddress ((uint8_t *) srcAddress);
|
comm->setSourceAddress ((uint8_t *) srcAddress);
|
||||||
comm->setDestinationAddress ((uint8_t *) destAddress);
|
comm->setDestinationAddress ((uint8_t *) destAddress);
|
||||||
comm->setPayload (MAX_BUFFER);
|
comm->setPayload (MAX_BUFFER);
|
||||||
// comm->setChannel (99);
|
comm->setChannel (99);
|
||||||
comm->configure ();
|
comm->configure ();
|
||||||
comm->dataRecievedHandler = nrf_handler;
|
comm->dataRecievedHandler = nrf_handler;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user