2.1.2 • Published 9 months ago
@starak/sim800c v2.1.2
SIM800C
Simple library for sending and receiving messages with sim800c
WIP! Do not use!
Installation
$ npm install @starak/sim800c
Usage
const {SIM800C} = require('@starak/sim800c');
(async () => {
const path = '/dev/serial0';
const gsm = new SIM800C({path});
await gsm.open();
await gsm.sendMessage('55512345', 'Hello from SIM800C');
console.log('Message sent');
gsm.on('message', async (message) => {
console.log('newMessage', message);
await gsm.deleteMessage(message.index);
});
})();
Setup environment
You'll need to create a .env
file in the root directory of the project. It should look like this:
DEBUG_SIM=true # to enable debug messages
SERIAL_PORT=/dev/serial0 # or whatever your SIM800C is connected to
2.1.2
9 months ago
2.1.1
1 year ago
2.1.0
1 year ago
2.0.6
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago