Skip to content

Instantly share code, notes, and snippets.

@hfuller
Created November 16, 2018 04:43
Show Gist options
  • Save hfuller/9123ff58bd651a3a6509959ac55fb3ea to your computer and use it in GitHub Desktop.
Save hfuller/9123ff58bd651a3a6509959ac55fb3ea to your computer and use it in GitHub Desktop.
Quick and dirty SNAP network to MQTT adapter
#!/bin/sh
set -e
snap -o json network listen | jq -jc ' "-t \"snap/cafe/", .src, "/", .func, "\" -m '"'"'", .args, "'"'"'\n" '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment