Loading files
#pragma once
// ═══════════════════════════════════════════════════════════
// PatternFlow - per-device secrets & feature toggles (TEMPLATE)
//
// Copy this file to patternflow_secrets.h and fill in your values.
// patternflow_secrets.h is gitignored so credentials never get committed.
//
// net_config.h includes the real file BEFORE applying its own defaults, and
// each feature's features/<name>/<name>_config.h does the same — so you only
// need to #define what you want to change; leave a line out to accept the
// default shown there.
// ═══════════════════════════════════════════════════════════
// ── Wi-Fi (shared by OTA, OSC, and audio-react) ──
// Required for any network feature. ESP32 is 2.4 GHz only.
#define PF_WIFI_SSID "your-wifi-name"
#define PF_WIFI_PASS "your-wifi-password"
// ── OTA (wireless flashing) ──
// On by default. Set to 0 to compile OTA out entirely.
#define PF_OTA_ENABLED 1
// Optional: change the mDNS hostname (default "patternflow"). Useful with
// more than one device on the same network.
// #define PF_OTA_HOSTNAME "patternflow-studio"
// Optional: set an upload password. Default is "" (no authentication), so
// espota.py / arduino-cli upload with no prompt. Set a value here to lock
// down a device on a shared network.
// #define PF_OTA_PASSWORD "your-secret"
// ── OSC (Ableton/Max sidechannel) ──
// Only read on a build whose composition includes the OSC feature — the
// Audio edition does; the default build has no features and ignores this
// line entirely. Set to 0 to compile OSC out of a build that does have it.
#define PF_OSC_ENABLED 1
// Remote host is normally LEARNED automatically: leave this line commented
// out and let the M4L bridge (or any host) send /patternflow/ping — the
// device replies to wherever the ping came from. Only set a static IP for
// send-only setups where the host never sends anything back.
// #define PF_OSC_REMOTE_HOST "192.168.0.10"
// #define PF_OSC_REMOTE_PORT 9000
// #define PF_OSC_LOCAL_PORT 9001
// ── Audio-react WebSocket ──
// Ships in the Audio edition; uncomment to compile it out of a build that
// has it. Nothing here adds the feature to a build without it.
// ── MQTT (panel-to-panel sync / home automation) ──
// Ships in the Performance edition. There it is inert until configured: the
// role (Off / Publisher / Subscriber) is chosen at http://<device-ip>/mqtt,
// and nothing is dialled until a broker host is set here. It costs internal
// heap while connected — see the measurements in features/mqtt/mqtt_config.h.
// #define PF_MQTT_HOST "broker.example.lan"
// #define PF_MQTT_PORT 1883
// #define PF_MQTT_USER "patternflow"
// #define PF_MQTT_PASS "your-broker-password"
// Topic root — <prefix>/knob/1..4 and <prefix>/pattern. Give each panel its
// own prefix when several share a broker and should not mirror each other.
// #define PF_MQTT_PREFIX "patternflow"
4e65bb073This file is pinned to the selected release. Download the original to open it in your design tool.