Files
SnarfCode/scripts/test_peanut.py

8 lines
205 B
Python

import requests
try:
r = requests.get("http://140.44.4.71:8050/api/v1/devices", timeout=3)
print("PeaNUT on 71:", r.status_code, r.json())
except Exception as e:
print("PeaNUT on 71 err:", e)