Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jpmens/mqttwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
sumnerboy12 committed Aug 17, 2015
2 parents f15d513 + c7de961 commit 75b0929
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,10 +669,12 @@ timeout = 60
targets = {
#method #URL # query params or None # list auth
'get1' : [ "get", "http://example.org?", { 'q': '{name}', 'isod' : '{_dtiso}', 'xx': 'yy' }, ('username', 'password') ],
'post1 : [ "post", "http://example.net", { 'q': '{name}', 'isod' : '{_dtiso}', 'xx': 'yy' }, None ]
'post1' : [ "post", "http://example.net", { 'q': '{name}', 'isod' : '{_dtiso}', 'xx': 'yy' }, None ]
}
```
If you want to use the mqtt message content directly in the query parameters use `'{payload}'`
Note that transforms in parameters must be quoted strings:
* Wrong: `'q' : {name}`
Expand Down

0 comments on commit 75b0929

Please sign in to comment.