Make ESP32 firmware API fully generic
This commit is contained in:
@@ -10,20 +10,20 @@ echo "1. Status:"
|
||||
curl -s "$BASE_URL/status" | python3 -m json.tool
|
||||
|
||||
echo
|
||||
echo "2. Starlink ON:"
|
||||
curl -s "$BASE_URL/relay/starlink/on" | python3 -m json.tool
|
||||
echo "2. Relay 1 ON:"
|
||||
curl -s "$BASE_URL/relay/relay_1/on" | python3 -m json.tool
|
||||
|
||||
echo
|
||||
echo "3. Starlink OFF:"
|
||||
curl -s "$BASE_URL/relay/starlink/off" | python3 -m json.tool
|
||||
echo "3. Relay 1 OFF:"
|
||||
curl -s "$BASE_URL/relay/relay_1/off" | python3 -m json.tool
|
||||
|
||||
echo
|
||||
echo "4. Fridge ON:"
|
||||
curl -s "$BASE_URL/relay/fridge/on" | python3 -m json.tool
|
||||
echo "4. Relay 2 ON:"
|
||||
curl -s "$BASE_URL/relay/relay_2/on" | python3 -m json.tool
|
||||
|
||||
echo
|
||||
echo "5. Fridge OFF:"
|
||||
curl -s "$BASE_URL/relay/fridge/off" | python3 -m json.tool
|
||||
echo "5. Relay 2 OFF:"
|
||||
curl -s "$BASE_URL/relay/relay_2/off" | python3 -m json.tool
|
||||
|
||||
echo
|
||||
echo "ESP32 HTTP bring-up test complete."
|
||||
|
||||
Reference in New Issue
Block a user