Created
August 30, 2024 08:59
-
-
Save didier-wenzek/22ec1ad02e1ab6f82d6b6a1365160b4d to your computer and use it in GitHub Desktop.
Send regular ticks over thin-edge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
while true | |
do | |
for tic in $(seq 1000) | |
do | |
TIC=$(cat <<EOF | |
tedge mqtt pub --qos 1 te/device/main///m/ {"tic":$tic,"time":$(date +%s.%N)} | |
EOF | |
) | |
$TIC | |
sleep 0.5 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment