Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1016 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 1016 Bytes

RFTransmitter

433 MHz modules

This is an Arduino library for low-cost 433 MHz transmitter modules with a focus on reliable one-way communication and forward error correction. It has no dependencies and works any digital output pin.

The corresponding RFReceiver library for the 433 MHz receiver modules can be found here.

Usage

433 MHz module connection

#include <RFTransmitter.h>

#define NODE_ID          1
#define OUTPUT_PIN       11

// Send on digital pin 11 and identify as node 1
RFTransmitter transmitter(OUTPUT_PIN, NODE_ID);

void setup() {}

void loop() {
  const char *msg = "Hello World!";
  transmitter.send((byte *)msg, strlen(msg) + 1);

  delay(5000);

  transmitter.resend((byte *)msg, strlen(msg) + 1);
}