Skip to content

Instantly share code, notes, and snippets.

@dwblair
Created October 21, 2020 02:55
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/4cfbcc993fafcd4d984058ae730ee342 to your computer and use it in GitHub Desktop.
Save dwblair/4cfbcc993fafcd4d984058ae730ee342 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl --location --request PUT 'http://127.0.0.1:3000/api/drives/62cc20d3974887a364a63817ef8a4367c21f5a6b275d1227c6390521e1acc0ca' --header 'Authorization: 15a74c67d6134a40b5d101b17ec6c5943b9a63a70b233979d94804a2bd776ac5' --header 'Content-Type: application/json' --data-raw '{"deviceId":"sensor1","fields":{"temp":28, "humid":18}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment