Files
ZephCore/zephcore/app/observer_creds.h
T
liquidraver 187a44060d close out the restructure's open items
- boot_info: label the ESP32 reset reasons Zephyr's hwinfo driver maps to 0
  (USB-Serial-JTAG/JTAG reset -> DEBUG, power glitch -> BROWNOUT, CPU lockup,
  eFuse -> HARDWARE); get pwrmgt.bootreason no longer says Unknown after a flash
- mqtt: the uplink credentials struct moves to adapters/mqtt/uplink_creds.h,
  so the adapter no longer includes an app header (layout unchanged: the
  struct is persisted raw)
- gps: one off-levels routine for standby/off and System OFF; the sleep line
  stays asserted in standby and drops at System OFF, as upstream's
  sleep_gps/stop_gps/powerOff; System OFF now asserts reset before cutting
  GPS_EN
- doom: sprites solid with a one-pixel black halo, boss drawn 1.5x on the
  floor; the L2 boss was invisible from the spawn on 1-bit panels
2026-09-26 08:50:30 +02:00

30 lines
842 B
C

/*
* SPDX-License-Identifier: MIT
* Observer runtime credentials — stored in LittleFS, configured via serial CLI.
*
* All connection parameters are runtime-configurable so no credentials ever
* appear in the codebase. File path: /lfs/repeater/obs_creds
*/
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "../adapters/mqtt/uplink_creds.h" /* struct ObserverCreds, observer_creds_init() */
#ifdef __cplusplus
extern "C" {
#endif
/* Load creds from /lfs/repeater/obs_creds.
* Returns true on success; on failure fills struct with safe zero defaults. */
bool observer_creds_load(struct ObserverCreds *creds, const char *base_path);
/* Save creds to /lfs/repeater/obs_creds. Returns true on success. */
bool observer_creds_save(const struct ObserverCreds *creds, const char *base_path);
#ifdef __cplusplus
}
#endif