06

SDK / API / BLE Integration

SDK, 서버 API, BLE bridge는 모두 actual value가 아니라 Earswet output envelope를 먼저 소비해야 한다.

Integration ruleenvelope-first consumer
Critical prohibitionraw route bypass

Common rule

파트너 앱과 펌웨어는 Earswet response를 값 또는 오류의 단순 구조로 처리하면 안 된다. response는 출력 가능성, 접근권한, 제한 사유, 정책 버전, evidence identity를 함께 담은 envelope이다. UI 표시, BLE characteristic 갱신, 서버 저장, 외부 API 재전송은 이 envelope 해석 이후에만 발생해야 한다.

Consumer responsibilities

ConsumerRequired behaviorForbidden behavior
Mobile SDKoutputModerawValueAccess를 먼저 해석raw getter를 직접 열어 수치를 표시
BLE bridgestatus, non-value, evidence characteristic을 actual characteristic과 분리차단 상태에서 actual-value characteristic 갱신
Server API외부 consumer에게 reasoned envelope 제공policy decision 이전 candidate를 raw payload로 반환
Partner dashboardreason code와 evidence identity를 support trace로 연결non-value를 단순 sensor failure로 치환

OEM handoff

OEM은 sensor_id, vendor_id, firmware version, calibration version, marker_id, unit, sampling_time, quality flag, raw_access_policy의 의미를 integration annex로 확정한다. 센서 내부 알고리즘 전체 공개가 아니라, output governance에 필요한 field semantics의 확정이 통합의 핵심이다.

Acceptance handoff