nRF51 SDK: Transmitter/Receiver example

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Transmitter/Receiver example

# Transmitter

This project requires that a device running the esb_prx_example is used as a counterpart for receiving the data. This can be on either nRF51 device or a nRF24LE1 device running the esb_prx_example in the nRFgo SDK.

This example listens for a packet and sends an ACK when a packet is received. The contents of the first payload byte of the received packet is output on the GPIO Port BUTTONS. The contents of GPIO Port LEDS are sent in the first payload byte (byte 0) of the ACK packet.

# Receiver

This project requires that a device running the esb_ptx_example example be used as a counterpart for receiving the data. This can be on either nRF51 device or a nRF24Lxx device running the esb_ptx_example in the nRFgo SDK.

This example sends a packet and adds a new packet to the TX queue every time it receives an ACK. The contents of GPIO Port BUTTONS are sent in the first payload byte (byte 0). The host sends an acknowledgement that is received by the device. The contents of the first payload byte of the acknowledgement is output on GPIO Port LEDS.