Skip to content

Commit da289ce

Browse files
committed
fixed #1
1 parent 572c9f2 commit da289ce

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

README.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
AWS Lambda which function as a brdge between custom events and MQTT Broker.
44

5+
### Dependencies
6+
7+
- AWS account
8+
- http://aws.amazon.com/
9+
- AWS Lambda service is currently in preview, so you need to be whitelisted to use it:
10+
- http://aws.amazon.com/lambda/
11+
- AWS CLI tools
12+
- http://docs.aws.amazon.com/cli/latest/userguide/installing.html
13+
Or on Linux or OSX this probably will do the job:
14+
``` bash
15+
sudo easy_install pip
16+
sudo pip install awscli
17+
```
18+
19+
520
We use this public MQTT broker for testing:
621
- http://test.mosquitto.org/
722

@@ -74,9 +89,9 @@ The lambda function expects custom events like this (see `event-mqtt.json` file)
7489

7590
``` json
7691
{
77-
"topic": "my-topic",
78-
"value": "hello, lambda!",
79-
"retain": false
92+
"topic": "my-topic",
93+
"value": "hello, lambda!",
94+
"retain": false
8095
}
8196
```
8297

index_test.coffee

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ handler = require('./index').handler
33
context = {
44
done: (cb, result) ->
55
console.log "DONE: ", result
6-
#NOTE: with process.exit 0 - even locally it doesn't work - probably the same thing happens on Lambda
7-
# when commented out - it works locally
86
process.exit 0
97
return
108
}

0 commit comments

Comments
 (0)