Skip to content

Commit

Permalink
pull_mqtt diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Jan 7, 2025
1 parent 93b10f7 commit 040d162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pull_mqtt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex

UDMI_ROOT=$(dirname $0)/..
cd $UDMI_ROOT
Expand Down Expand Up @@ -54,6 +54,7 @@ sudo mosquitto_sub $SERVER_OPTS -R -F "%j" -t $topic_filter |
out_path=$OUT_BASE/$registryId/devices/$deviceId/${timepath}/${usetime}_${subFolder}_${subType}
out_dir=$(dirname $out_path)
mkdir -p $out_dir
echo out_path is $out_path
echo $(realpath --relative-to $OUT_BASE $out_path).json $topic
echo $json > $out_path.json
echo {} | jq ".deviceRegistryId=\"$registryId\" | \
Expand Down

0 comments on commit 040d162

Please sign in to comment.