Commit graph

6 commits

Author SHA1 Message Date
martin
ab0f3e8c6b Pin D1 war defekt, daher haben wir dauf D4 geändert. Dieser ist geleichzeitig die 2. Status LED auf dem Lua Bord und zeigt den Status geschlossen an. 2024-01-20 10:03:49 +01:00
66bc266f2e
Fix nodemcu/statusclient: I now know what a reed switch is 2023-10-24 11:30:48 +02:00
63f9f25b00
Cleanup nodemcu/statusclient 2023-10-24 01:33:39 +02:00
78e31e52a1
Refactored nodemcu/statusclient
- Fix init_wifi: removed `ESP8266WiFiMulti`; replaced with simple
  wifi ap connection
- Fix send_status: refactored return type into `bool`
- Fix send_status: optimized if-branch for calculation of `status` into
  array access
- Fix send_status: removed `client.connected()` => `client.connect(...)`
  is enough
- Fix: renamed `reed` into `read`
- Cleanup: changed int variables into uint8_t
- Cleanup: moved static data (`ca_certs`, `client_cert/key` into global
  data
- Style: changed typedef enum into scoped enum (enum class decl)
- Style: changed int const definitions into anonymous enum constants
- Style: reorderd headers alphabetically
2023-10-24 01:08:04 +02:00
c2fd6ec7b0
Refactored config.h: converted #defines in constants 2023-10-24 01:07:23 +02:00
+++
af78204005 clientprogramme in eigenes verzeichnis verschoben 2023-10-21 20:42:26 +02:00