https://github.com/baudev/433utils
This project is a portage in TypeScript of the repository https://github.com/ninjablocks/433Utils
https://github.com/baudev/433utils
433mhz pin portage receiver typescript
Last synced: about 2 months ago
JSON representation
This project is a portage in TypeScript of the repository https://github.com/ninjablocks/433Utils
- Host: GitHub
- URL: https://github.com/baudev/433utils
- Owner: baudev
- License: mit
- Created: 2020-02-09T15:35:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T19:16:45.000Z (about 6 years ago)
- Last Synced: 2025-01-10T04:20:13.203Z (over 1 year ago)
- Topics: 433mhz, pin, portage, receiver, typescript
- Language: C++
- Size: 134 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 433Utils
This project is a simple portage in TypeScript of the repository [433Utils](https://github.com/ninjablocks/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.
```typescript
let receiver = new Receiver(0); // Set PIN
receiver.setOnReceiveListener((data) => {
// handle data value
});
```
### Send
```typescript
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](http://wiringpi.com/wp-content/uploads/2013/03/pins.pdf).
This project needs:
- Raspberry PI
- 433 Mhz Transmitter (TX)
- 433 Mhz Receiver (RX)