You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Wi-Fi PHY Mode**: To enable 802.11g Wi-Fi PHY mode, set `ENABLE_WIFI_PHY_MODE_11G` to `1` in the `private.h` file. By default, it is set to `0` (disabled).
561
+
- Radio debug: control verbose CC1101/RADIAN debug output with `DEBUG_CC1101` in `private.h`.
562
+
- `#define DEBUG_CC1101 1`enables verbose radio debugging (default in the example file).
563
+
- `#define DEBUG_CC1101 0`disables verbose radio debugging.
567
564
568
565
3. **Select Your Board Environment**
569
-
- Use the PlatformIO status bar at the bottom of VS Code to select your board:
- `env:d1_mini_pro`- WeMos D1 Mini Pro (USB upload)
572
+
- `env:d1_mini_pro-ota`- WeMos D1 Mini Pro (OTA upload)
573
+
- `env:nodemcuv2`- NodeMCU v2 (USB upload)
574
+
- `env:nodemcuv2-ota`- NodeMCU v2 (OTA upload)
575
+
- `env:esp32dev`- ESP32 DevKit (USB upload)
576
+
- `env:esp32dev-ota`- ESP32 DevKit (OTA upload)
577
+
- **For first-time setup**: Use the standard environment (without `-ota`)
578
+
- **For OTA updates**: After your device is running on Wi-Fi, use the `-ota` environment and update the IP address in `platformio.ini`
579
+
- See the "Quick Start" section above for detailed build and upload instructions
583
580
584
581
4. **Perform Frequency Discovery (First-Time Setup)**
585
-
- On the very first boot (or anytime there is no stored frequency offset), the firmware automatically launches a wide scan while `AUTO_SCAN_ENABLED` is set to `1` (default).
586
-
- If you need to skip the scan during development (for example, when you already know the meter's frequency), add `#define AUTO_SCAN_ENABLED 0` to your `include/private.h`.
587
-
- Compile and upload the code to your ESP device using PlatformIO. Use **PlatformIO > Upload and Monitor**.
588
-
- **Keep the device connected to your computer during this process.** The serial monitor will display debug output as the device scans frequencies in the 433 MHz range.
589
-
- **Important**: During the initial scan (first boot with no stored frequency offset), the device performs a wide frequency scan that takes approximately 2 minutes **before** connecting to MQTT.
590
-
You will see no MQTT/Home Assistant activity during this time - this is normal.
591
-
Monitor the serial output to see the scan progress.
592
-
Once the scan completes and the optimal frequency is found, the device will connect to MQTT and publish telemetry data.
593
-
- Once the correct frequency is identified, update the `FREQUENCY` value in `private.h` if needed (the automatic scan stores the offset, so manual adjustment is usually not required).
594
-
- To re-run the wide scan later, either set `CLEAR_EEPROM_ON_BOOT` to `1` for a single boot cycle or re-enable `AUTO_SCAN_ENABLED`.
595
-
- For best results, perform this step during local business hours when the meter is most likely to transmit.
596
-
Refer to the "Frequency Adjustment" section below for additional guidance.
582
+
- On the very first boot (or anytime there is no stored frequency offset), the firmware automatically launches a wide scan while `AUTO_SCAN_ENABLED` is set to `1` (default).
583
+
- If you need to skip the scan during development (for example, when you already know the meter's frequency), add `#define AUTO_SCAN_ENABLED 0` to your `include/private.h`.
584
+
- Compile and upload the code to your ESP device using PlatformIO. Use **PlatformIO > Upload and Monitor**.
585
+
- **Keep the device connected to your computer during this process.** The serial monitor will display debug output as the device scans frequencies in the 433 MHz range.
586
+
- **Important**: During the initial scan (first boot with no stored frequency offset), the device performs a wide frequency scan that takes approximately 2 minutes **before** connecting to MQTT. You will see no MQTT/Home Assistant activity during this time - this is normal. Monitor the serial output to see the scan progress. Once the scan completes and the optimal frequency is found, the device will connect to MQTT and publish telemetry data.
587
+
- Once the correct frequency is identified, update the `FREQUENCY` value in `private.h` if needed (the automatic scan stores the offset, so manual adjustment is usually not required).
588
+
- To re-run the wide scan later, either set `CLEAR_EEPROM_ON_BOOT` to `1` for a single boot cycle or re-enable `AUTO_SCAN_ENABLED`.
589
+
- For best results, perform this step during local business hours when the meter is most likely to transmit. Refer to the "Frequency Adjustment" section below for additional guidance.
597
590
598
591
5. **Build and Upload**
599
-
- Follow the build and upload instructions in the "Quick Start" section above.
600
-
- For first-time setup, use USB upload with the standard environment (e.g., `env:huzzah`).
601
-
- Keep the device connected to your computer during USB upload.
592
+
- Follow the build and upload instructions in the "Quick Start" section above.
593
+
- For first-time setup, use USB upload with the standard environment (e.g., `env:huzzah`).
594
+
- Keep the device connected to your computer during USB upload.
602
595
603
596
6. **Verify Meter Data**
604
-
- After WiFi and MQTT connection is established (or after the initial frequency scan completes), the meter data should appear in the terminal (bottom panel) and be pushed to MQTT.
605
-
- If Frequency Discovery is still enabled, its output will also be displayed during this step.
606
-
- **Note**: On first boot with no stored frequency offset, there will be a ~2 minute delay before any MQTT activity while the wide frequency scan runs.
607
-
This is normal - monitor the serial output to see progress.
597
+
- After WiFi and MQTT connection is established (or after the initial frequency scan completes), the meter data should appear in the terminal (bottom panel) and be pushed to MQTT.
598
+
- If Frequency Discovery is still enabled, its output will also be displayed during this step.
599
+
- **Note**: On first boot with no stored frequency offset, there will be a ~2 minute delay before any MQTT activity while the wide frequency scan runs. This is normal - monitor the serial output to see progress.
608
600
609
601
7. **Automatic Meter Query**
610
-
- The device will automatically query the meter once every 24 hours.
611
-
If the query fails, it will retry every hour until successful.
602
+
- The device will automatically query the meter once every 24 hours.
603
+
- If the query fails, it will retry every hour until successful.
0 commit comments