Skip to content

Commit 372086d

Browse files
committed
fix: remove wifi portal
1 parent fb7669b commit 372086d

File tree

10 files changed

+14
-355
lines changed

10 files changed

+14
-355
lines changed

pgpemu-esp32/.github/copilot-instructions.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Copilot Instructions for `pgpemu-esp32`
22

33
## Project Overview
4-
- **Purpose:** Emulates a Pokémon GO Plus device on ESP32-C3 hardware, providing BLE, button, LED, and WiFi captive portal functionality.
5-
- **Structure:**
6-
- All main logic is in `main/` (e.g., `pgp_gatts.c`, `pgp_gap.c`, `pgp_handshake.c`, `config_portal.c`).
4+
- All main logic is in `main/` (e.g., `pgp_gatts.c`, `pgp_gap.c`, `pgp_handshake.c`).
5+
**Purpose:** Emulates a Pokémon GO Plus device on ESP32-C3 hardware, providing BLE, button, and LED functionality.
6+
**Structure:**
7+
- All main logic is in `main/` (e.g., `pgp_gatts.c`, `pgp_gap.c`, `pgp_handshake.c`).
78
- Uses ESP-IDF build system (CMake/Makefile) and ESP-IDF APIs for BLE, WiFi, NVS, etc.
89
- `build/` is generated; do not edit.
910

1011
## Key Components
1112
- **BLE GATT Server:** `pgp_gatts.c`, `pgp_gap.c`, `pgp_gatts_debug.c` handle BLE services and device advertising.
1213
- **Button/LED:** `button_input.c`, `led_output.c`, `pgp_led_handler.c` manage hardware I/O.
13-
- **WiFi Setup Portal:** `config_portal.c`, `captive_dns.c` provide a captive portal for device configuration.
14+
1415
- **Secrets/Settings:** `config_secrets.c`, `settings.c`, `nvs_helper.c` manage persistent storage in NVS.
1516
- **Certificates:** `pgp_cert.c` and related files handle device certificates for authentication.
1617
- **PC Test Harness:** `main/pc/` and `Makefile.test` allow building a test binary (`cert-test`) for handshake/cert logic on a PC.

pgpemu-esp32/main/captive_dns.c

Lines changed: 0 additions & 121 deletions
This file was deleted.

pgpemu-esp32/main/captive_dns.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

pgpemu-esp32/main/config_portal.c

Lines changed: 0 additions & 213 deletions
This file was deleted.

pgpemu-esp32/main/config_portal.h

Lines changed: 0 additions & 2 deletions
This file was deleted.

pgpemu-esp32/main/led_output.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef LED_OUTPUT_H
22
#define LED_OUTPUT_H
33

4+
#include <stdbool.h>
45
void init_led_output();
56

67
// leds turn off after given duration. set duration to 0 to keep leds on until next event.

pgpemu-esp32/main/pgp_bluetooth.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef PGP_BLUETOOTH_H
22
#define PGP_BLUETOOTH_H
33

4+
#include <stdbool.h>
5+
#include <stdint.h>
6+
47
bool init_bluetooth();
58

69
extern uint8_t bt_mac[6];

0 commit comments

Comments
 (0)