Socket
Book a DemoInstallSign in
Socket

433-utils

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

433-utils

This project is a portage in TypeScript of the repository https://github.com/ninjablocks/433Utils

1.1.3
latest
npmnpm
Version published
Weekly downloads
5
-44.44%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

433

FAQs

Package last updated on 08 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.