1
0
This repository has been archived on 2026-06-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MSE-PI-E2EEDA-Plein-de-eeee…/gateway/gateway.py
DjeAvd 3aac195626 fix(gateway): fix BLE filtering and MQTT connection validation
BLE filtering:
- Replace UUID service filter with company_id 0xffff filter in
  manufacturer_data — Zephyr firmware does not announce a service UUID
- Remove preamble skip in decode_payload (i=0 instead of i=2) since
  company_id is handled by the BLE stack and not in raw bytes
- Fix endianness: switch temperature and CO2 decoding from little-endian
  to big-endian to match Zephyr firmware implementation

MQTT validation:
- Add on_connect callback to confirm successful connection to broker
- Log error with reason code if connection fails
- Add on_publish callback to confirm message delivery to broker
- Replace synchronous connected log with async connecting log

Validated end-to-end: Thingy:52 data received and confirmed by broker
2026-06-04 12:32:47 +02:00

6.1 KiB