Skip to content

Commit

Permalink
v0.3.4 fixed some minor issues. PR #29
Browse files Browse the repository at this point in the history
merged devel branch
  • Loading branch information
hpsaturn authored Mar 7, 2025
2 parents 986231f + 71854e9 commit 9cea8b0
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
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
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ESP32 Wifi CLI",
"version": "0.3.3",
"version": "0.3.4",
"homepage":"https://github.com/hpsaturn/esp32-wifi-cli#readme",
"keywords":
[
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP32 Wifi CLI
version=0.3.3
version=0.3.4
author=hpsaturn <[email protected]>
maintainer=hpsaturn <[email protected]>
url=https://github.com/hpsaturn/esp32-wifi-cli.git
Expand Down
4 changes: 2 additions & 2 deletions src/ESP32WifiCLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ 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
#if CONFIG_IDF_TARGET_ESP32C3
WiFi.setTxPower(WIFI_POWER_8_5dBm);
#endif

while (WiFi.status() != WL_CONNECTED && retry++ < 20) { // M5Atom will connect automatically
Expand Down
4 changes: 2 additions & 2 deletions src/ESP32WifiCLI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#define RW_MODE false
#define RO_MODE true

#define ESP32WIFICLI_VERSION "0.3.3"
#define ESP32WIFICLI_REVISION 047
#define ESP32WIFICLI_VERSION "0.3.4"
#define ESP32WIFICLI_REVISION 048

#ifndef WCLI_MAX_CMDS
#define WCLI_MAX_CMDS 15 // user and public commands
Expand Down
18 changes: 17 additions & 1 deletion src/telnet_cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,20 @@ bool ESP32WifiCLI::isTelnetEnable() {
bool ESP32WifiCLI::isTelnetRunning() {
return isServerEnable;
}
#endif
#endif

#ifdef DISABLE_CLI_TELNET
void ESP32WifiCLI::enableTelnet() {
}

void ESP32WifiCLI::disableTelnet() {
}

bool ESP32WifiCLI::isTelnetEnable() {
return false;
}

bool ESP32WifiCLI::isTelnetRunning() {
return false;
}
#endif

0 comments on commit 9cea8b0

Please sign in to comment.