Digital Roomspray의 ESP32 펌웨어와 모바일 컨트롤 화면 전체 코드입니다. 팀원 누구든 받아서 본인 환경에서 빌드·실행할 수 있도록 설계되었습니다.
_firmware/) + 웹 컴포넌트(components/) + 셋업 README 포함. 빌드 캐시·node_modules는 제외되어 있습니다.PlatformIO CLI로 한 줄 빌드·업로드. VSCode 확장에 의존하지 않습니다.
brew install platformio # 또는 Windows / Linux pip install -U platformio
cd _firmware pio run --target upload pio device monitor # 부팅 로그 확인
업로드 후 시리얼에 [BLE] ✅ Advertising as 'DigitalRoomspray'가 보이면 성공입니다.
Next.js 16 (App Router) + React + Tailwind CSS 환경을 가정합니다. 본인 프로젝트에 components/ 폴더를 복사한 뒤 다음과 같이 라우트에 배치하세요.
'use client';
import MobileControl from './components/MobileControl';
export default function Page() {
return <MobileControl />;
}DigitalRoomspray 선택 → 페어링[CMD] mode=... ch=... fan=... 출력{
"mode": "focus",
"ch": 2,
"fan": 204,
"dur": 27,
"hr": 72
}{hr, ch, t?, h?, aq?} 형태로 Notify를 보냅니다. 결선되지 않은 센서 필드는 생략됩니다(웹은 자동 감지).