We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2018-02-02
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Sub-1 GHz Transceivers
Downloaded: 5031 times
Not followed.
License: MIT license
OOK RX click is a wireless receiver that operates at the frequency of 433MHz (sub-GHz). This device allows realization of a simple, low-speed wireless ad hoc communication network between a receiver and compatible transmitter, such as OOK TX click.
Do you want to subscribe in order to receive notifications regarding "OOK RX click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "OOK RX click" changes.
Do you want to report abuse regarding "OOK RX click".
Library description
This library contains a function that receives data from OOK RX click.
Key functions
uint8_t ookrx_receiveData(uint16_t startPacket, uint8_t * pReceivedData, uint8_t numBytes) - Reads data from the DO pin.
The application is composed of three sections :
void applicationTask() { char outputTxt[20]; uint8_t receivedPacket[1]; if(!(ookrx_receiveData(0xCE35, &receivedPacket, 1))) { ShortToStr(receivedPacket[0], outputTxt); mikrobus_logWrite(outputTxt, _LOG_LINE); } }
MikroElektronika Libraries used in the example:
Additional notes and information
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.