JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q74074F
  • License ISC

NodeJS module to send and receive decimal codes through 433Mhz device on RaspberryPI 2

Package Exports

  • rpi-433

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rpi-433) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rpi-433

NPM

NodeJS module to send and receive decimal codes through 433Mhz device on RaspberryPI 2

Dependencies

Building WiringPi

pi@raspberrypi ~ $ git clone git://git.drogon.net/wiringPi
...
pi@raspberrypi ~ $ cd wiringPi/wiringPi
pi@raspberrypi ~/wiringPi/wiringPi $ sudo su
...
root@raspberrypi:/home/pi/wiringPi/wiringPi# ./build

Installation

npm install rpi-433

Example

var rpi433    = require('rpi-433'),
    rfSniffer = rpi433.sniffer(),
    rfSend    = rpi433.sendCode;

// Receive    
rfSniffer.on('codes', function (code) {
  console.log('Code received: '+code);
});

// Send
rfSend(1234); //Send 1234