data_read #1
|
@ -0,0 +1,10 @@
|
|||
FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt /app
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
CMD ["python", "main.py"]
|
|
@ -33,7 +33,7 @@ class Headwind:
|
|||
try:
|
||||
async with self.fanClient as client:
|
||||
result = await client.read_gatt_char(CHARACTERISTIC)
|
||||
return result[3] # Return state code
|
||||
return result[3] # Return state code, needs to figure out what each code means
|
||||
except Exception:
|
||||
return 0
|
||||
|
||||
|
@ -75,7 +75,6 @@ class Headwind:
|
|||
try:
|
||||
async with self.fanClient as client:
|
||||
await client.write_gatt_char(CHARACTERISTIC, value)
|
||||
# print("flag")
|
||||
return True
|
||||
except Exception as e:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue