Skip to content

Instantly share code, notes, and snippets.

@dwblair
Last active November 30, 2020 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dwblair/9faffa5982ea9a1c383430d2a2fd3b07 to your computer and use it in GitHub Desktop.
Save dwblair/9faffa5982ea9a1c383430d2a2fd3b07 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in {1..1000}
do
echo 'post ...'
curl --location --request PUT 'http://159.65.226.222:3000/api/drives/59a0cab6d6faa75e205a52522bcaa255e1d3bcede4b52b85bc899534f6792e4b' --header 'Authorization: 41c29b4d120993dfb0bbc2a0e2f3b63ba0d28a99433a06e9bd3bf025743c62a7' --header 'Content-Type: application/json' --data-raw '{"deviceId":"sensor1","fields":{"temp":20.3, "humid":10}}'
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment