433-utils
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

433Utils

This project is a simple portage in TypeScript of the repository 433Utils. This repository simply calls the various executables of the ported library.

The .cpp files have been modified (in /custom433Utils/) to pass the PIN as argument (and thus not to build the files each time the PIN is modified).

Installation

npm i 433-utils

Usage

Receive

This listener allows you to listen to data received by the receiver on the specified PIN.

let receiver = new Receiver(0); // Set PIN
receiver.setOnReceiveListener((data) => {
    // handle data value
});

Send

let transmitter = new Transmitter(1); // Set PIN
transmitter.send(123, 2, 1)
    .then((values) => {
        // message sent
    });

Note

The PIN parameters correspond to those of the WiringPi library. The mapping table can be found here.

This project needs:

  • Raspberry PI
  • 433 Mhz Transmitter (TX)
  • 433 Mhz Receiver (RX)

Readme

Keywords

Package Sidebar

Install

npm i 433-utils

Weekly Downloads

1

Version

1.1.3

License

ISC

Unpacked Size

184 kB

Total Files

50

Last publish

Collaborators

  • baudev