Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed old esp32c3 workaround around wifi connection #27

Merged
merged 2 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,23 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
python-version: [3.7]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
python-version: ${{ matrix.python-version }}
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ void setup() {
wcli.setCallback(new mESP32WifiCLICallbacks()); // (optional)
wcli.setSilentMode(true); // less debug output

// Custom commands:
wcli.add("sleep", &sleep, "\t\t<mode> <time> ESP32 sleep mode (deep/light)\r\n");
// Custom commands example:
wcli.add("sleep", &sleep, "\t\t<mode> <time> ESP32 sleep mode (deep/light)");
wcli.add("echo", &echo, "\t\t\"message\" Echo the msg. Parameter into quotes");
wcli.add("info", &info, "\t\tsystem status info");
wcli.add("setled", &setled, "\t<PIN> config the LED GPIO for blink");
wcli.add("blink", &blink, "\t\t<times> <millis> LED blink x times each x millis");
wcli.add("blink", &blink, "\t\t<times> <millis> LED blink");
wcli.add("reboot", &reboot, "\tperform a ESP32 reboot");

wcli.shell->attachLogo(logo);
Expand Down
4 changes: 0 additions & 4 deletions src/ESP32WifiCLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ void ESP32WifiCLI::wifiAPConnect(bool save) {
int retry = 0;
WiFi.begin(temp_ssid.c_str(), temp_pasw.c_str());

#ifdef FAMILY
if (FAMILY == "ESP32-C3") WiFi.setTxPower(WIFI_POWER_8_5dBm); // TODO: uggly workaround for some C3 devices
#endif

while (WiFi.status() != WL_CONNECTED && retry++ < 20) { // M5Atom will connect automatically
delay(1000);
if (!silent) Serial.print(".");
Expand Down
Loading