v.0.11.0 ap-server & pico-client

This commit is contained in:
tiijay
2025-11-20 19:42:50 +01:00
parent 00c24110ee
commit 2233be7987
11 changed files with 213 additions and 21 deletions

View File

@@ -0,0 +1,20 @@
import urequests # type: ignore
import json
BASE_API_URL: str = "http://0.0.0.0:8000"
class API_Server_Checker:
def __init__(self):
pass
def _get_items(self):
items_url: str = f"{BASE_API_URL}/items"
print(f"query: {items_url}")
r = urequests.get(items_url)
print("Status-Code:", r.status_code)
json_resp = r.json()
print("json_resp:", json_resp)
def check(self):
self._get_items()