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:
parent
4c654ec969
commit
1751076592
2614 changed files with 349009 additions and 0 deletions
36
lib/python3.11/site-packages/circuitpython_typing/http.py
Normal file
36
lib/python3.11/site-packages/circuitpython_typing/http.py
Normal 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"""
|
Loading…
Add table
Add a link
Reference in a new issue