Skip to content
Snippets Groups Projects

Api authentication

Merged Callum Inglis requested to merge UAT into main
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -86,6 +86,7 @@ class SensorResponse(object):
headers = {'Content-Type': 'Application/json'}
response = requests.post(API_URL + '/sensor/reading', data=self.ToJson(), headers=headers)#, verify=False) # Using self signed cert for now, sort later!
if DEBUG > 1:
print(self.ToJson())
print(response) # Ensure 200 Response!
return
Loading