/* ============================================================================= * reporter.h - 이벤트 보고 헬퍼 (본문 생성 -> 서명 -> TLS POST + 재시도) * * app_config.h 의 호스트/경로/재시도 설정과 board_config.h 의 기기 식별값을 * 사용한다. timesync_now() 로 timestamp 를 채운다. * * RPi 대응: * report_sht30_event <- sht30_monitor.py post_reading() * ===========================================================================*/ #ifndef REPORTER_H #define REPORTER_H /* SHT30 측정 보고. event_type: "startup"|"periodic". * 반환: 0 성공(HTTP 200), 음수 실패. 내부에서 재시도한다. */ int report_sht30_event(const char *event_type, double temp_c, double rh, const char *metric_status); #endif /* REPORTER_H */