Skip to content

Instantly share code, notes, and snippets.

@cpq
Last active December 6, 2017 15:02
Show Gist options
  • Save cpq/cba067029a478951162efe4851dfac42 to your computer and use it in GitHub Desktop.
Save cpq/cba067029a478951162efe4851dfac42 to your computer and use it in GitHub Desktop.
btgw
[
{
"name_pattern": "*",
"addr_pattern": "c2:*|01:*",
"actions": {
"00001530-1212-efde-1523-785feabcd123": {
"00001111-2222-3456-6543-785feabcd456": {
"notify": {
"dst": { "type": "http", "url": "http://127.0.0.1:1234/bt/${name}" }
},
"write": {
"src": { "type": "mqtt", "topic": "bt/${name}" }
}
}
}
}
},
{
"name_pattern": "*",
"addr_pattern": "18:*",
"actions": {
"1234": {
"5678": {
"read": {
"interval": 10,
"dst": { "type": "shadow", "key": "foo" }
}
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment