1
0
mirror of https://github.com/revspace/operame synced 2024-11-01 05:57:30 +00:00

Merge pull request #8 from SanderVanhove/feat/add-rest

Extend rest cert length
This commit is contained in:
ControlCO2.space 2021-08-27 15:06:57 +02:00 committed by GitHub
commit b1766c1b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -496,7 +496,7 @@ void setup() {
rest_interval = 1000UL * WiFiSettings.integer("operame_rest_interval", 10, 3600, 60 * 5, T.config_rest_interval); rest_interval = 1000UL * WiFiSettings.integer("operame_rest_interval", 10, 3600, 60 * 5, T.config_rest_interval);
rest_resource_id = WiFiSettings.string("rest_resource_id", 64, "", T.config_rest_resource_id); rest_resource_id = WiFiSettings.string("rest_resource_id", 64, "", T.config_rest_resource_id);
bool rest_cert_enabled = WiFiSettings.checkbox("operame_rest_cert", false, T.config_rest_cert_enabled); bool rest_cert_enabled = WiFiSettings.checkbox("operame_rest_cert", false, T.config_rest_cert_enabled);
rest_cert = WiFiSettings.string("rest_cert", 2000, "", T.config_rest_cert); rest_cert = WiFiSettings.string("rest_cert", 6000, "", T.config_rest_cert);
rest_cert.replace("\\n", "\n"); rest_cert.replace("\\n", "\n");
WiFiSettings.onConnect = [] { WiFiSettings.onConnect = [] {