feat: update release notes and web panel controls
This commit is contained in:
1 parent
4bce747df0
commit
7232afc115
5 files changed
+278
-7
No files matched your search
@@ -199,7 +199,8 @@ This section includes:
|
||||
- Private Key
|
||||
- Advert Interval
|
||||
- Flood Interval
|
||||
- Flood Max
|
||||
- Scoped Flood Max
|
||||
- Unscoped Flood Max
|
||||
- Owner Info
|
||||
|
||||
Notes:
|
||||
@@ -347,7 +348,7 @@ On mobile:
|
||||
|
||||
1. Press `Start OTA`.
|
||||
2. Confirm the action.
|
||||
3. The panel starts OTA, then opens the returned `http://.../update` URL.
|
||||
3. The panel starts OTA, waits briefly for the OTA HTTP listener to take over port `80`, then opens the returned `http://.../update` URL.
|
||||
4. The local HTTP redirect listener on port `80` is released so OTA can take over that port.
|
||||
5. Continue with your normal OTA workflow.
|
||||
|
||||
|
||||
@@ -40,6 +40,21 @@ releases:
|
||||
text: "Updated the companion_wifi firmware base to upstream MeshCore v1.15.0."
|
||||
breaking_changes: []
|
||||
|
||||
- track: companion-wifi
|
||||
version: "1.16.0"
|
||||
tag: "companion-wifi-v1.16.0"
|
||||
date: "2026-06-07"
|
||||
previous_version: "1.15.0"
|
||||
summary: "Updates companion WiFi firmware to upstream MeshCore v1.16.0."
|
||||
changes:
|
||||
- type: changed
|
||||
area: upstream
|
||||
text: "Updated the companion WiFi firmware base to upstream MeshCore v1.16.0."
|
||||
- type: changed
|
||||
area: board
|
||||
text: "Included upstream board, UI, power-saving, and platform fixes from MeshCore dev."
|
||||
breaking_changes: []
|
||||
|
||||
- track: repeater-bridge-espnow
|
||||
version: "1.15.0"
|
||||
tag: "repeater-bridge-espnow-v1.15.0"
|
||||
@@ -58,6 +73,21 @@ releases:
|
||||
text: "Updated release guidance to document the repeater ESP-NOW bridge tag format and versioning rule."
|
||||
breaking_changes: []
|
||||
|
||||
- track: repeater-bridge-espnow
|
||||
version: "1.16.0"
|
||||
tag: "repeater-bridge-espnow-v1.16.0"
|
||||
date: "2026-06-07"
|
||||
previous_version: "1.15.0"
|
||||
summary: "Updates repeater ESP-NOW bridge firmware to upstream MeshCore v1.16.0."
|
||||
changes:
|
||||
- type: changed
|
||||
area: upstream
|
||||
text: "Updated the repeater ESP-NOW bridge firmware base to upstream MeshCore v1.16.0."
|
||||
- type: changed
|
||||
area: board
|
||||
text: "Included upstream board, radio, UI, and platform fixes from MeshCore dev."
|
||||
breaking_changes: []
|
||||
|
||||
- track: observer-eastmesh
|
||||
version: "2026.5.1"
|
||||
tag: "observer-eastmesh-v2026.5.1"
|
||||
@@ -104,6 +134,24 @@ releases:
|
||||
text: "Merged upstream MeshCore dev updates including sensor handling, RAK4631 BME680/BSEC support, documentation refreshes, and board/platform fixes."
|
||||
breaking_changes: []
|
||||
|
||||
- track: observer-eastmesh
|
||||
version: "2026.6.1"
|
||||
tag: "observer-eastmesh-v2026.6.1"
|
||||
date: "2026-06-07"
|
||||
previous_version: "2026.6.0"
|
||||
summary: "Updates Observer firmware to upstream MeshCore v1.16.0 with flood-advert controls and board/platform fixes."
|
||||
changes:
|
||||
- type: added
|
||||
area: cli
|
||||
text: "Added `flood.max.advert` so flooded advert packets can use their own hop limit."
|
||||
- type: changed
|
||||
area: upstream
|
||||
text: "Merged upstream MeshCore v1.16.0 dev updates including companion UI, board, radio, power-saving, documentation, and platform fixes."
|
||||
- type: docs
|
||||
area: docs
|
||||
text: "Updated EastMesh custom CLI docs for the new `flood.max.advert` command."
|
||||
breaking_changes: []
|
||||
|
||||
- track: observer-eastmesh-bridge-espnow
|
||||
version: "2026.5.1"
|
||||
tag: "observer-eastmesh-bridge-espnow-v2026.5.1"
|
||||
@@ -149,3 +197,21 @@ releases:
|
||||
area: upstream
|
||||
text: "Merged upstream MeshCore dev updates including sensor handling, RAK4631 BME680/BSEC support, documentation refreshes, and board/platform fixes."
|
||||
breaking_changes: []
|
||||
|
||||
- track: observer-eastmesh-bridge-espnow
|
||||
version: "2026.6.1"
|
||||
tag: "observer-eastmesh-bridge-espnow-v2026.6.1"
|
||||
date: "2026-06-07"
|
||||
previous_version: "2026.6.0"
|
||||
summary: "Updates Observer ESP-NOW bridge firmware to upstream MeshCore v1.16.0 with flood-advert controls and board/platform fixes."
|
||||
changes:
|
||||
- type: added
|
||||
area: cli
|
||||
text: "Added `flood.max.advert` so flooded advert packets can use their own hop limit."
|
||||
- type: changed
|
||||
area: upstream
|
||||
text: "Merged upstream MeshCore v1.16.0 dev updates including companion UI, board, radio, power-saving, documentation, and platform fixes."
|
||||
- type: docs
|
||||
area: docs
|
||||
text: "Updated EastMesh custom CLI docs for the new `flood.max.advert` command."
|
||||
breaking_changes: []
|
||||
@@ -0,0 +1,153 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
namespace eastmesh_web_assets {
|
||||
|
||||
static const uint8_t kFaviconPng[] PROGMEM = {
|
||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
|
||||
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
|
||||
0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x06,
|
||||
0x49, 0x49, 0x44, 0x41, 0x54, 0x58, 0x09, 0xed, 0x56, 0x6d, 0x6c, 0x5b,
|
||||
0xe5, 0x15, 0x7e, 0xde, 0xfb, 0xe5, 0x7b, 0x6d, 0xe7, 0x3a, 0xf6, 0x92,
|
||||
0x3a, 0x75, 0x92, 0xb6, 0x4e, 0x48, 0x13, 0x68, 0x52, 0xda, 0x44, 0x59,
|
||||
0x35, 0x8d, 0x74, 0xed, 0xc6, 0x36, 0xc8, 0x8f, 0x6a, 0x20, 0xa5, 0x62,
|
||||
0x4c, 0x93, 0x56, 0x8a, 0x8a, 0xd8, 0xc6, 0xa6, 0x49, 0xe3, 0x17, 0x12,
|
||||
0xa4, 0x9b, 0xb6, 0x49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9e, 0x25, 0xf4, 0x3f, 0xbc, 0xd7,
|
||||
0x7c, 0x36, 0x8e, 0xc1, 0x1f, 0xdd, 0x03, 0x45, 0x3d, 0x0d, 0xb7, 0xe1,
|
||||
0x70, 0xbc, 0x6b, 0xeb, 0x06, 0x39, 0x14, 0x01, 0x84, 0x80, 0x03, 0x51,
|
||||
0xdd, 0x02, 0x32, 0x0a, 0x54, 0xbc, 0x28, 0x9a, 0xdb, 0x7e, 0x87, 0x7d,
|
||||
0x0c, 0xe4, 0x2a, 0x44, 0xb8, 0xd9, 0x9d, 0xfd, 0x0b, 0x5f, 0xbc, 0x2f,
|
||||
0x49, 0x85, 0x6d, 0x5c, 0xb5, 0xb7, 0x78, 0x28, 0xf7, 0x15, 0xf7, 0xe4,
|
||||
0x73, 0xee, 0x51, 0xb2, 0x21, 0xda, 0x82, 0x79, 0x4d, 0x91, 0x24, 0x09,
|
||||
0xc9, 0x85, 0x34, 0x14, 0x51, 0x01, 0x09, 0xa8, 0xad, 0x54, 0x72, 0x5f,
|
||||
0xe4, 0x9f, 0x78, 0xfa, 0xa1, 0xbb, 0x9b, 0xe3, 0x9d, 0x6f, 0xe6, 0xb3,
|
||||
0x83, 0x25, 0x35, 0xfa, 0x2c, 0xb3, 0xfd, 0xe6, 0xcd, 0xec, 0x2f, 0x9f,
|
||||
0xd5, 0xe5, 0xc0, 0xc8, 0xdc, 0x37, 0x23, 0x45, 0xe0, 0xc7, 0x8b, 0x76,
|
||||
0x7f, 0xfa, 0x1c, 0xed, 0x49, 0x1f, 0xfd, 0x87, 0xf2, 0x08, 0x29, 0x71,
|
||||
0x1b, 0x68, 0x30, 0x22, 0x2a, 0xbe, 0x00, 0xd6, 0xfb, 0x25, 0x5c, 0x9c,
|
||||
0x38, 0x45, 0xbb, 0xef, 0xd8, 0x04, 0x3e, 0x1c, 0x22, 0xad, 0xed, 0x21,
|
||||
0xec, 0xba, 0x73, 0x63, 0x47, 0xab, 0xd2, 0xa0, 0xec, 0x6c, 0x6d, 0xc7,
|
||||
0xa9, 0xac, 0xd1, 0xeb, 0xde, 0xfe, 0xe5, 0x13, 0x78, 0xfb, 0x68, 0xf6,
|
||||
0x66, 0x20, 0xea, 0x02, 0x90, 0x7e, 0xd8, 0x7f, 0x5f, 0xc6, 0x8d, 0xf8,
|
||||
0xa7, 0xad, 0x0e, 0xdf, 0x99, 0xa9, 0x2d, 0x1e, 0xce, 0x25, 0xbf, 0x05,
|
||||
0x37, 0x00, 0x41, 0x0c, 0x23, 0x98, 0xd7, 0x31, 0xbc, 0xbd, 0x8f, 0x6e,
|
||||
0x54, 0x2b, 0x18, 0xb9, 0x77, 0x08, 0x43, 0x3d, 0x9d, 0xd8, 0xa0, 0xf8,
|
||||
0x61, 0xf3, 0x1e, 0xfc, 0xbc, 0x08, 0xbd, 0xec, 0x91, 0xa6, 0x68, 0x4b,
|
||||
0xdb, 0x64, 0xa6, 0xfc, 0x0d, 0xc8, 0x9d, 0x2f, 0x62, 0xe6, 0xad, 0x4a,
|
||||
0x3d, 0x10, 0x75, 0x39, 0x30, 0xef, 0xb4, 0x6d, 0xba, 0x54, 0xec, 0x29,
|
||||
0x5c, 0xba, 0xa4, 0x0a, 0xde, 0x85, 0xcc, 0x00, 0x72, 0x16, 0x68, 0x99,
|
||||
0x07, 0x9f, 0xab, 0x22, 0xa6, 0x86, 0x68, 0xef, 0x17, 0x38, 0x10, 0xd7,
|
||||
0x44, 0x2c, 0xe0, 0xe2, 0xf6, 0x35, 0x01, 0x88, 0x10, 0x10, 0xb6, 0x24,
|
||||
0x54, 0x2a, 0x1e, 0x92, 0x59, 0x0b, 0x83, 0x3e, 0x3f, 0x6b, 0x50, 0x75,
|
||||
0x23, 0xda, 0xbb, 0x9f, 0xc7, 0x32, 0x69, 0xeb, 0x48, 0x5d, 0x00, 0x85,
|
||||
0x54, 0x73, 0x48, 0x2b, 0xb6, 0xea, 0xde, 0x6b, 0xa9, 0x07, 0x30, 0x3e,
|
||||
0x3b, 0x4c, 0xe7, 0x4b, 0xc0, 0x62, 0x15, 0x44, 0x73, 0x58, 0x94, 0x40,
|
||||
0x48, 0xe6, 0x70, 0x35, 0x55, 0x80, 0x6d, 0x39, 0xc4, 0xf3, 0x28, 0x44,
|
||||
0x8e, 0x23, 0xa6, 0xe1, 0xa0, 0x52, 0xa4, 0xa0, 0x16, 0xa1, 0x82, 0x49,
|
||||
0xa9, 0x90, 0x31, 0x01, 0x5b, 0x1e, 0x86, 0xd4, 0xf6, 0x02, 0x5a, 0xf6,
|
||||
0x34, 0xd7, 0xc2, 0x50, 0x97, 0x84, 0x76, 0x22, 0x52, 0x01, 0x2f, 0x0b,
|
||||
0xd0, 0xe4, 0x2a, 0x66, 0xb3, 0x02, 0x2c, 0xd6, 0x84, 0x7a, 0x1a, 0x1e,
|
||||
0xcf, 0x21, 0xef, 0xf8, 0x51, 0x32, 0x62, 0x78, 0xe0, 0xfe, 0x9d, 0x24,
|
||||
0xd8, 0xd8, 0x04, 0xc3, 0x22, 0xe4, 0xf2, 0x7c, 0x1e, 0x32, 0x0f, 0x22,
|
||||
0x5b, 0x1e, 0x0a, 0x29, 0x06, 0x36, 0x20, 0xc2, 0x9b, 0xcc, 0x00, 0xa6,
|
||||
0x05, 0x18, 0xce, 0x6e, 0xc8, 0xc2, 0xaf, 0x18, 0x00, 0xa6, 0x58, 0x29,
|
||||
0x75, 0x33, 0x80, 0xab, 0xf2, 0x59, 0x24, 0xbc, 0x1e, 0xd0, 0xd8, 0x18,
|
||||
0x72, 0x69, 0x66, 0xc8, 0x01, 0xd2, 0x1f, 0xc2, 0xca, 0xcc, 0xc2, 0x2a,
|
||||
0x66, 0xf1, 0x9f, 0xf3, 0x8b, 0xd0, 0x2a, 0x0e, 0x8e, 0x8c, 0xcf, 0xe1,
|
||||
0x8f, 0xaf, 0x9c, 0x85, 0xa9, 0x9b, 0x34, 0x35, 0x9f, 0x45, 0x98, 0xf1,
|
||||
0xc0, 0x4a, 0x17, 0x68, 0x26, 0xab, 0xc3, 0xcb, 0xe6, 0x99, 0xcb, 0xab,
|
||||
0x40, 0x7e, 0x9e, 0xb5, 0x67, 0x76, 0xdd, 0x4a, 0xd7, 0x1f, 0x3f, 0xd5,
|
||||
0xcd, 0x00, 0x16, 0x9d, 0x57, 0xa1, 0xfb, 0xbf, 0x8f, 0x4b, 0x89, 0x71,
|
||||
0x70, 0x41, 0x97, 0x14, 0x12, 0x3c, 0x25, 0xac, 0xee, 0x02, 0x8f, 0x8c,
|
||||
0x25, 0x90, 0x33, 0x97, 0x73, 0x8c, 0x78, 0x65, 0x9c, 0xb8, 0x52, 0xc2,
|
||||
0xa9, 0x8f, 0x0a, 0xf0, 0x11, 0x97, 0xdc, 0xbb, 0xa5, 0x15, 0x93, 0x1f,
|
||||
0x26, 0xf0, 0xe0, 0xae, 0x41, 0xfc, 0xfa, 0x85, 0xd3, 0x40, 0x39, 0x0f,
|
||||
0x62, 0x97, 0x41, 0x0d, 0xd6, 0x08, 0x66, 0x81, 0x35, 0xd5, 0x8d, 0x52,
|
||||
0xb7, 0x0b, 0xf0, 0xd6, 0x2b, 0x15, 0xc4, 0xbe, 0x4b, 0x90, 0x2b, 0xfd,
|
||||
0x02, 0xa9, 0xf7, 0x39, 0x50, 0x96, 0x01, 0x8e, 0x5d, 0x57, 0xd4, 0x82,
|
||||
0x4d, 0x84, 0x3f, 0x1b, 0x46, 0xe9, 0x2f, 0x57, 0xde, 0x39, 0xbe, 0x2d,
|
||||
0x9b, 0xd7, 0x0f, 0x68, 0x2c, 0x50, 0x47, 0x37, 0xda, 0x27, 0xa7, 0xd2,
|
||||
0x4e, 0x2c, 0xd6, 0xc8, 0x5f, 0x4c, 0x14, 0xc9, 0x7b, 0xe3, 0x17, 0x21,
|
||||
0x78, 0x1a, 0x88, 0x59, 0x02, 0x35, 0x0b, 0xa7, 0xa1, 0xea, 0xbf, 0x84,
|
||||
0x96, 0xb4, 0x3f, 0x0d, 0xe1, 0x33, 0x16, 0x09, 0x25, 0xd8, 0xf6, 0xf7,
|
||||
0x67, 0x90, 0x39, 0xf3, 0x35, 0x14, 0xdf, 0x9d, 0x82, 0x12, 0x79, 0x1a,
|
||||
0x72, 0x64, 0x0e, 0xd3, 0x07, 0x67, 0xe8, 0x28, 0x84, 0xde, 0xc3, 0xbb,
|
||||
0x66, 0xda, 0xc2, 0xde, 0xc8, 0xd8, 0xfc, 0x96, 0x2c, 0x5c, 0xf3, 0x7e,
|
||||
0x78, 0x64, 0x2f, 0x08, 0xdf, 0x8d, 0x8a, 0xc6, 0xc8, 0x57, 0x04, 0x71,
|
||||
0x74, 0xd0, 0x6a, 0x39, 0xcd, 0xce, 0xbe, 0x8a, 0xf2, 0x89, 0x0b, 0x9f,
|
||||
0x76, 0xbe, 0xfc, 0x5c, 0xbf, 0x04, 0xd7, 0x6e, 0x13, 0x8a, 0xb7, 0xf1,
|
||||
0x18, 0x76, 0xbc, 0xe4, 0xc7, 0xb1, 0x03, 0xe5, 0x4f, 0x1a, 0x78, 0xbc,
|
||||
0xfc, 0x53, 0xdf, 0x43, 0xdf, 0x59, 0xef, 0x2c, 0x2d, 0xe5, 0x7d, 0x63,
|
||||
0x3f, 0x7f, 0x72, 0x06, 0x03, 0xa3, 0xbf, 0x87, 0x6e, 0x9e, 0x41, 0xd5,
|
||||
0x78, 0x03, 0xb6, 0x01, 0xb8, 0x36, 0x28, 0x65, 0x14, 0xe3, 0xf0, 0x1c,
|
||||
0x8a, 0xb5, 0x9d, 0xaf, 0x02, 0xc0, 0x35, 0x97, 0x1e, 0x8e, 0xed, 0x5e,
|
||||
0xe1, 0x7c, 0x59, 0x1b, 0x0c, 0x06, 0xa9, 0xc2, 0xa6, 0xa1, 0x70, 0xbd,
|
||||
0xc3, 0x27, 0x46, 0x99, 0x57, 0xfa, 0x6f, 0xc4, 0x1f, 0x7b, 0x04, 0xbc,
|
||||
0xd8, 0x0f, 0x97, 0x88, 0xa0, 0xde, 0x39, 0x96, 0x95, 0x97, 0xaf, 0x59,
|
||||
0xa9, 0xf3, 0x53, 0xbf, 0x0b, 0xea, 0xbc, 0x70, 0x5d, 0xfd, 0xd4, 0xda,
|
||||
0x7f, 0xd9, 0xc9, 0xe4, 0x12, 0x75, 0x2a, 0x25, 0xd6, 0x67, 0xd7, 0x85,
|
||||
0x65, 0xec, 0xf2, 0x33, 0x07, 0xd1, 0xb3, 0xed, 0x67, 0xe8, 0x18, 0xa4,
|
||||
0xe8, 0xd9, 0x71, 0x08, 0xc5, 0x23, 0x97, 0xaf, 0x9f, 0xd6, 0xfa, 0xbf,
|
||||
0x59, 0x09, 0xc8, 0xc0, 0xf8, 0x80, 0xb0, 0xc6, 0x11, 0x14, 0xcf, 0x92,
|
||||
0x02, 0xbe, 0x80, 0x3f, 0xb0, 0x46, 0x0a, 0xfa, 0x73, 0x95, 0x2e, 0xdf,
|
||||
0xc9, 0x99, 0x4d, 0x62, 0xe3, 0xe9, 0xbc, 0x5f, 0x39, 0x7e, 0x4c, 0x41,
|
||||
0x7b, 0x57, 0x3f, 0x9e, 0x38, 0x4c, 0x10, 0x69, 0xae, 0x22, 0xaf, 0x19,
|
||||
0xa8, 0x06, 0x8b, 0x51, 0xcd, 0x76, 0xb2, 0x17, 0xc6, 0xa7, 0x83, 0x9c,
|
||||
0x57, 0x2a, 0xd4, 0xf2, 0xfa, 0x09, 0x5d, 0x2d, 0x12, 0x92, 0xcd, 0xbf,
|
||||
0xd9, 0xec, 0x0f, 0xb5, 0x88, 0x2a, 0x09, 0x88, 0x8d, 0xae, 0x4c, 0x43,
|
||||
0x02, 0xa1, 0x44, 0x14, 0xfc, 0x3e, 0x85, 0x6f, 0x88, 0xe9, 0x66, 0x24,
|
||||
0x74, 0xfc, 0x00, 0xf7, 0xa8, 0x57, 0x74, 0xfa, 0x3c, 0x83, 0x91, 0x5a,
|
||||
0x0c, 0xb2, 0x7a, 0xa8, 0xac, 0xd6, 0xa2, 0x17, 0x8b, 0x86, 0xac, 0xa6,
|
||||
0x06, 0x35, 0x37, 0x9d, 0x70, 0x5e, 0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x5e, 0x09, 0xfd,
|
||||
0x96, 0xb9, 0xae, 0x59, 0x8d, 0x9a, 0x00, 0xce, 0x1f, 0xdb, 0xe4, 0xa1,
|
||||
0x57, 0x79, 0x4a, 0x8c, 0x77, 0x46, 0xa9, 0x79, 0x25, 0x42, 0xab, 0xa9,
|
||||
0x08, 0x27, 0x2a, 0x2a, 0x4f, 0x54, 0x4b, 0x14, 0x9c, 0xc6, 0x3f, 0x4d,
|
||||
0x7c, 0x90, 0x80, 0xee, 0xb2, 0xf5, 0xc8, 0xc1, 0xf5, 0x38, 0xde, 0xef,
|
||||
0x57, 0x18, 0x3a, 0xe2, 0xb3, 0x2b, 0xa6, 0x4c, 0x75, 0xdd, 0x27, 0xf9,
|
||||
0x42, 0xef, 0x9f, 0xf8, 0x48, 0x3f, 0x2f, 0x87, 0x23, 0x6f, 0xdc, 0xd6,
|
||||
0xb5, 0xb6, 0xa4, 0x4f, 0x25, 0xae, 0xde, 0x18, 0xfb, 0xc7, 0x9a, 0x9a,
|
||||
0x1c, 0xc0, 0x8e, 0xef, 0x85, 0x70, 0xdb, 0x40, 0x18, 0x7d, 0x9b, 0x05,
|
||||
0x64, 0xde, 0xf3, 0xa0, 0xcd, 0xd8, 0x08, 0x04, 0xaa, 0xa8, 0x4a, 0x2e,
|
||||
0xb2, 0x70, 0x30, 0x3c, 0x62, 0x60, 0xe4, 0x0e, 0x17, 0xfb, 0xd9, 0x17,
|
||||
0xf1, 0xda, 0x09, 0x82, 0x73, 0x21, 0x0e, 0x3e, 0x43, 0x80, 0x5e, 0x92,
|
||||
0xb0, 0x94, 0xf4, 0xb1, 0xd9, 0xcf, 0xb6, 0x95, 0xd6, 0x80, 0x58, 0xa7,
|
||||
0x80, 0xe6, 0x66, 0x17, 0xe7, 0xcf, 0x6a, 0x58, 0xb8, 0x30, 0x8f, 0xd9,
|
||||
0xbf, 0xb2, 0xf5, 0x78, 0x4b, 0x6e, 0x65, 0xe0, 0x56, 0x06, 0x56, 0x66,
|
||||
0xe0, 0xbf, 0x94, 0xca, 0xb0, 0x29, 0x61, 0x87, 0x57, 0xda, 0x00, 0x00,
|
||||
0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
|
||||
};
|
||||
|
||||
static constexpr size_t kFaviconPngLen = sizeof(kFaviconPng);
|
||||
|
||||
} // namespace eastmesh_web_assets
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <Update.h>
|
||||
|
||||
#include "EastMeshFavicon.h"
|
||||
#include "../mqtt/generated/WebPanelCert.h"
|
||||
|
||||
namespace {
|
||||
@@ -217,6 +218,7 @@ const char kWebPanelLoginHtml[] PROGMEM = R"HTML(
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Repeater Login</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico">
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
@@ -305,6 +307,7 @@ const char kWebPanelStatsDisabledHtml[] PROGMEM = R"HTML(
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Stats Disabled</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico">
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
@@ -343,6 +346,7 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Repeater Config</title>
|
||||
<link rel="icon" type="image/png" href="/favicon.ico">
|
||||
<style>
|
||||
:root {
|
||||
color-scheme: light;
|
||||
@@ -780,7 +784,7 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
</div>
|
||||
<div class="section-group">
|
||||
<h3>Advertising</h3>
|
||||
<div class="row3">
|
||||
<div class="row">
|
||||
<div class="field-card">
|
||||
<div>
|
||||
<label class="label" for="advertInterval">Advert Interval (minutes)</label>
|
||||
@@ -803,13 +807,23 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
</div>
|
||||
<div class="field-card">
|
||||
<div>
|
||||
<label class="label" for="floodMax">Flood Max</label>
|
||||
<label class="label" for="floodMax">Scoped Flood Max</label>
|
||||
<div class="fieldline">
|
||||
<input id="floodMax" placeholder="64">
|
||||
<button class="iconbtn" data-load-cmd="get flood.max" data-load-input="floodMax" title="Refresh flood max">↻</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="savebtn" data-prefix="set flood.max " data-input="floodMax">Save flood max</button>
|
||||
<button class="savebtn" data-prefix="set flood.max " data-input="floodMax">Save scoped flood max</button>
|
||||
</div>
|
||||
<div class="field-card">
|
||||
<div>
|
||||
<label class="label" for="floodUnscopedMax">Unscoped Flood Max</label>
|
||||
<div class="fieldline">
|
||||
<input id="floodUnscopedMax" placeholder="64">
|
||||
<button class="iconbtn" data-load-cmd="get flood.max.unscoped" data-load-input="floodUnscopedMax" title="Refresh unscoped flood max">↻</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="savebtn" data-prefix="set flood.max.unscoped " data-input="floodUnscopedMax">Save unscoped flood max</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1120,6 +1134,10 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
try { sessionStorage.removeItem(TOKEN_KEY); } catch (_) {}
|
||||
try { localStorage.removeItem(TOKEN_KEY); } catch (_) {}
|
||||
}
|
||||
function storeToken(value) {
|
||||
try { sessionStorage.setItem(TOKEN_KEY, value); } catch (_) {}
|
||||
try { localStorage.setItem(TOKEN_KEY, value); } catch (_) {}
|
||||
}
|
||||
let token = readStoredToken();
|
||||
let commandQueue = Promise.resolve();
|
||||
let radioPresetEntries = [];
|
||||
@@ -2516,6 +2534,20 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
if (trendsEl) trendsEl.innerHTML = "";
|
||||
}
|
||||
}
|
||||
async function loginFromApp() {
|
||||
const passwordEl = document.getElementById("password");
|
||||
const pwd = passwordEl ? passwordEl.value : "";
|
||||
const res = await fetch("/login", { method:"POST", body: pwd });
|
||||
const text = await res.text();
|
||||
if (!res.ok) {
|
||||
statusEl.textContent = text || "Access denied";
|
||||
return;
|
||||
}
|
||||
token = text.trim();
|
||||
storeToken(token);
|
||||
statusEl.textContent = "Unlocked";
|
||||
await initApp();
|
||||
}
|
||||
function isUnsetMqttIata(value) {
|
||||
return String(value || "").trim().toUpperCase() === "UNSET";
|
||||
}
|
||||
@@ -2920,6 +2952,13 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
}
|
||||
}
|
||||
document.getElementById("runBtn").onclick = () => runCommand(document.getElementById("command").value);
|
||||
document.getElementById("loginBtn").onclick = () => loginFromApp();
|
||||
document.getElementById("password").addEventListener("keydown", (event) => {
|
||||
if (event.key === "Enter") {
|
||||
event.preventDefault();
|
||||
loginFromApp();
|
||||
}
|
||||
});
|
||||
document.getElementById("openStatsPanelBtn").onclick = () => navigateToPage("/stats");
|
||||
document.getElementById("command").addEventListener("keydown", (event) => {
|
||||
if (event.key === "Enter") {
|
||||
@@ -3094,7 +3133,7 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
if (result.ok && match) {
|
||||
window.setTimeout(() => {
|
||||
window.location.href = match[0];
|
||||
}, 3000);
|
||||
}, 5000);
|
||||
} else {
|
||||
otaBtn.disabled = false;
|
||||
}
|
||||
@@ -3160,6 +3199,7 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML(
|
||||
() => loadField("get advert.interval", "advertInterval", null, quiet),
|
||||
() => loadField("get flood.advert.interval", "floodInterval", null, quiet),
|
||||
() => loadField("get flood.max", "floodMax", null, quiet),
|
||||
() => loadField("get flood.max.unscoped", "floodUnscopedMax", null, quiet),
|
||||
() => loadGhostNodeModeState(quiet)
|
||||
]);
|
||||
if (!isCurrentPageLoad(generation)) return;
|
||||
@@ -3211,7 +3251,7 @@ bool WebPanelServer::start() {
|
||||
|
||||
httpd_ssl_config_t config = HTTPD_SSL_CONFIG_DEFAULT();
|
||||
config.httpd.max_open_sockets = 2;
|
||||
config.httpd.max_uri_handlers = 8;
|
||||
config.httpd.max_uri_handlers = 9;
|
||||
config.httpd.max_resp_headers = 4;
|
||||
config.httpd.backlog_conn = 2;
|
||||
config.httpd.recv_wait_timeout = 15;
|
||||
@@ -3236,6 +3276,7 @@ bool WebPanelServer::start() {
|
||||
}
|
||||
|
||||
httpd_uri_t index_uri = {.uri = "/", .method = HTTP_GET, .handler = &WebPanelServer::handleIndex, .user_ctx = &_route_context};
|
||||
httpd_uri_t favicon_uri = {.uri = "/favicon.ico", .method = HTTP_GET, .handler = &WebPanelServer::handleFavicon, .user_ctx = &_route_context};
|
||||
httpd_uri_t app_uri = {.uri = "/app", .method = HTTP_GET, .handler = &WebPanelServer::handleApp, .user_ctx = &_route_context};
|
||||
httpd_uri_t stats_page_uri = {.uri = "/stats", .method = HTTP_GET, .handler = &WebPanelServer::handleStatsPage, .user_ctx = &_route_context};
|
||||
httpd_uri_t login_uri = {.uri = "/login", .method = HTTP_POST, .handler = &WebPanelServer::handleLogin, .user_ctx = &_route_context};
|
||||
@@ -3244,6 +3285,7 @@ bool WebPanelServer::start() {
|
||||
httpd_uri_t firmware_update_uri = {.uri = "/api/firmware-update", .method = HTTP_POST, .handler = &WebPanelServer::handleFirmwareUpdate, .user_ctx = &_route_context};
|
||||
httpd_uri_t stats_uri = {.uri = "/api/stats", .method = HTTP_GET, .handler = &WebPanelServer::handleStats, .user_ctx = &_route_context};
|
||||
httpd_register_uri_handler(_server, &index_uri);
|
||||
httpd_register_uri_handler(_server, &favicon_uri);
|
||||
httpd_register_uri_handler(_server, &app_uri);
|
||||
httpd_register_uri_handler(_server, &stats_page_uri);
|
||||
httpd_register_uri_handler(_server, &login_uri);
|
||||
@@ -3333,6 +3375,14 @@ esp_err_t WebPanelServer::handleIndex(httpd_req_t* req) {
|
||||
return sendProgmemChunked(req, kWebPanelLoginHtml);
|
||||
}
|
||||
|
||||
esp_err_t WebPanelServer::handleFavicon(httpd_req_t* req) {
|
||||
httpd_resp_set_type(req, "image/png");
|
||||
httpd_resp_set_hdr(req, "Cache-Control", "max-age=86400");
|
||||
return httpd_resp_send(req,
|
||||
reinterpret_cast<const char*>(eastmesh_web_assets::kFaviconPng),
|
||||
eastmesh_web_assets::kFaviconPngLen);
|
||||
}
|
||||
|
||||
esp_err_t WebPanelServer::handleHttpRedirect(httpd_req_t* req) {
|
||||
auto* ctx = static_cast<RouteContext*>(req->user_ctx);
|
||||
if (ctx == nullptr || ctx->self == nullptr) {
|
||||
|
||||
@@ -61,6 +61,7 @@ private:
|
||||
RouteContext _route_context;
|
||||
|
||||
static esp_err_t handleIndex(httpd_req_t* req);
|
||||
static esp_err_t handleFavicon(httpd_req_t* req);
|
||||
static esp_err_t handleHttpRedirect(httpd_req_t* req);
|
||||
static esp_err_t handleApp(httpd_req_t* req);
|
||||
static esp_err_t handleStatsPage(httpd_req_t* req);
|
||||
|
||||
Reference in new issue
Block a user