MikrofonSensor und TemperaturSenor die zwei Python programme funktionieren. mit den jeweiligen 2 json Datein. Beim TemperaturSensor wird im Terminal keine Wertre ausgegeben aber in der json Datei kann man die Temp und Hum sehen.

This commit is contained in:
Chiara 2025-05-28 14:53:44 +02:00
parent 4c654ec969
commit 1751076592
2614 changed files with 349009 additions and 0 deletions

View file

@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: Copyright (c) 2022 Alec Delaney
#
# SPDX-License-Identifier: MIT
"""
`circuitpython_typing.http`
===========================
Type annotation definitions for HTTP and related objects
* Author(s): Alec Delaney
"""
from adafruit_requests import Response
# Protocol was introduced in Python 3.8.
from typing_extensions import Protocol
class HTTPProtocol(Protocol):
"""Protocol for HTTP request managers, like typical wifi managers"""
def get(self, url: str, **kw) -> Response:
"""Send HTTP GET request"""
def put(self, url: str, **kw) -> Response:
"""Send HTTP PUT request"""
def post(self, url: str, **kw) -> Response:
"""Send HTTP POST request"""
def patch(self, url: str, **kw) -> Response:
"""Send HTTP PATCH request"""
def delete(self, url: str, **kw) -> Response:
"""Send HTTP DELETE request"""