@starak/sim800c 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +18 -4
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ const {GSM, SerialPort} = require('@starak/sim800c');
|
|
|
24
24
|
const gsm = new GSM(SIM_PATH);
|
|
25
25
|
await gsm.ready();
|
|
26
26
|
await gsm.sendMessage('55512345', 'Hello from SIM800C');
|
|
27
|
-
console
|
|
27
|
+
console.log('Message sent');
|
|
28
28
|
gsm.on('newMessage', async (message) => {
|
|
29
29
|
console.log('newMessage', message);
|
|
30
30
|
await gsm.deleteMessage(message.index);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starak/sim800c",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Simple library for sending and receiving messages with sim800c",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,8 +9,15 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc"
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Ståle Raknes",
|
|
14
|
+
"email": "stale@raknes.net",
|
|
15
|
+
"url": "https://github.com/starak"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/starak/sim800c.git"
|
|
20
|
+
},
|
|
14
21
|
"license": "MIT",
|
|
15
22
|
"dependencies": {
|
|
16
23
|
"pdu.ts": "^1.1.4",
|
|
@@ -20,5 +27,12 @@
|
|
|
20
27
|
"@types/node": "^17.0.21",
|
|
21
28
|
"ts-node": "^10.9.1",
|
|
22
29
|
"typescript": "^4.9.5"
|
|
23
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"gsm",
|
|
33
|
+
"serialport",
|
|
34
|
+
"sim800c",
|
|
35
|
+
"sms",
|
|
36
|
+
"pdu"
|
|
37
|
+
]
|
|
24
38
|
}
|