Initial commit: LoraTester Android + server

This commit is contained in:
2026-06-04 13:05:21 +03:00
commit 83d0353754
124 changed files with 7892 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
"""Client identification for API endpoints."""
ANDROID_CLIENT_HEADER = "X-Lora-Client"
ANDROID_CLIENT_VALUE = "android"
def is_android_client(headers) -> bool:
value = headers.get(ANDROID_CLIENT_HEADER) or headers.get(
ANDROID_CLIENT_HEADER.lower()
)
return (value or "").strip().lower() == ANDROID_CLIENT_VALUE