mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-16 19:50:02 +01:00
Added infos about startap, stopap
This commit is contained in:
@@ -1046,7 +1046,7 @@ void SerialInterface::runCommand(String input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ===== START/STOP AP ===== //
|
// ===== START/STOP AP ===== //
|
||||||
// startap
|
// startap [-p <path][-s <ssid>] [-pswd <password>] [-ch <channel>] [-h] [-cp]
|
||||||
else if (eqlsCMD(0, CLI_STARTAP)) {
|
else if (eqlsCMD(0, CLI_STARTAP)) {
|
||||||
String path = String(F("/web"));
|
String path = String(F("/web"));
|
||||||
String ssid = settings.getSSID();
|
String ssid = settings.getSSID();
|
||||||
@@ -1057,17 +1057,17 @@ void SerialInterface::runCommand(String input) {
|
|||||||
|
|
||||||
for (int i = 1; i < list->size(); i++) {
|
for (int i = 1; i < list->size(); i++) {
|
||||||
if (eqlsCMD(i, CLI_PATH)) {
|
if (eqlsCMD(i, CLI_PATH)) {
|
||||||
path = list->get(i + 1);
|
|
||||||
i++;
|
i++;
|
||||||
|
path = list->get(i);
|
||||||
} else if (eqlsCMD(i, CLI_SSID)) {
|
} else if (eqlsCMD(i, CLI_SSID)) {
|
||||||
ssid = list->get(i + 1);
|
|
||||||
i++;
|
i++;
|
||||||
|
ssid = list->get(i);
|
||||||
} else if (eqlsCMD(i, CLI_PASSWORD)) {
|
} else if (eqlsCMD(i, CLI_PASSWORD)) {
|
||||||
password = list->get(i + 1);
|
|
||||||
i++;
|
i++;
|
||||||
|
password = list->get(i);
|
||||||
} else if (eqlsCMD(i, CLI_CHANNEL)) {
|
} else if (eqlsCMD(i, CLI_CHANNEL)) {
|
||||||
ch = list->get(i + 1).toInt();
|
|
||||||
i++;
|
i++;
|
||||||
|
ch = list->get(i).toInt();
|
||||||
} else if (eqlsCMD(i, CLI_HIDDEN)) {
|
} else if (eqlsCMD(i, CLI_HIDDEN)) {
|
||||||
hidden = true;
|
hidden = true;
|
||||||
} else if (eqlsCMD(i, CLI_CAPTIVEPORTAL)) {
|
} else if (eqlsCMD(i, CLI_CAPTIVEPORTAL)) {
|
||||||
|
|||||||
@@ -318,10 +318,18 @@ Will only work if you run a wifi scan first, i.e. `scan wifi -t 65s -ch 1`.
|
|||||||
- **width** (optional, default = 2): Width in characters per bar in graph.
|
- **width** (optional, default = 2): Width in characters per bar in graph.
|
||||||
|
|
||||||
## STARTAP
|
## STARTAP
|
||||||
`startap ...`
|
`startap [-p <path][-s <ssid>] [-pswd <password>] [-ch <channel>] [-h] [-cp]`
|
||||||
...
|
Starts access point.
|
||||||
`stopap`
|
- **path** [-p] (optional, default = "/web"): Path to web files.
|
||||||
...
|
- **ssid** [-s] (optional, default = [settings ssid](https://github.com/spacehuhn/esp8266_deauther/blob/master/settings.md#ssid)): Network name.
|
||||||
|
- **password** [-pswd] (optional, default = [settings password](https://github.com/spacehuhn/esp8266_deauther/blob/master/settings.md#password)): Password.
|
||||||
|
- **channel** [-ch] (optional, default = [settings channel](https://github.com/spacehuhn/esp8266_deauther/blob/master/settings.md#channel)): Channel .
|
||||||
|
- **hidden** [-h] (optional, default = [settings hidden](https://github.com/spacehuhn/esp8266_deauther/blob/master/settings.md#hidden)): Hide SSID.
|
||||||
|
- **captiveportal** [-cp] (optional, default = [settings captiveportal](https://github.com/spacehuhn/esp8266_deauther/blob/master/settings.md#captiveportal)): Enable captiveportal.
|
||||||
|
|
||||||
|
`stopap`
|
||||||
|
Stops access point.
|
||||||
|
|
||||||
|
|
||||||
## SCREEN
|
## SCREEN
|
||||||
`screen <on/off>`
|
`screen <on/off>`
|
||||||
|
|||||||
Reference in New Issue
Block a user