Skip to content

Commit 7aa3140

Browse files
committed
fix #11 networkDelete in UI sent malformed data
1 parent 3f243a6 commit 7aa3140

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP32 Wifi Manager",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "A multi wifi manager for arduino based ESP applications, with extensive RESTful API, and configuration stored on non volatile memory.",
55
"keywords": "esp32, wifi, ap, softap, sta, restful, api, manager, arduino",
66
"repository":

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP32_Wifi_Manager
2-
version=1.4.0
2+
version=1.4.1
33
author=Martin Verges
44
maintainer=Martin Verges <[email protected]>
55
sentence=Wifi manager for ESP32 devices

wifimanager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ void WIFIMANAGER::attachUI() {
11101110
headers: {
11111111
'Content-Type': 'application/json',
11121112
},
1113-
body: JSON.stringify({ id: deleteId }),
1113+
body: JSON.stringify({ id: parseInt(deleteId, 10) }),
11141114
});
11151115
11161116
if (!response.ok) throw new Error('Failed to delete network');

0 commit comments

Comments
 (0)