diff --git a/mkdocs/acelements.md b/mkdocs/acelements.md index 6038ad1..e7b037b 100644 --- a/mkdocs/acelements.md +++ b/mkdocs/acelements.md @@ -345,7 +345,7 @@ ACSubmit ( *name* \[ , *value* \] \[\[ , *value* \] \[ , *style* \] ) -!!! hint "Declaration macro usage" +!!! memo "Declaration macro usage" For example, *AutoConnectText* can be declared using macros. ```cpp AutoConnectText caption("caption", "hello, world", "color:blue;") diff --git a/mkdocs/acjson.md b/mkdocs/acjson.md index 9c44d10..cd4cae2 100644 --- a/mkdocs/acjson.md +++ b/mkdocs/acjson.md @@ -1,100 +1,22 @@ ## Describe custom Web pages with JSON -You can embed custom Web pages written in JSON into AutoConnect without declaring AutoConnectAux & AutoConnectElements in sketches. Custom Web page declaration in JSON can be included in the sketch in advance as the fixed string, or it can be stored in the external file such as SPIFFS for stream loading. You can also load and save AutoConnectElements objects individually.[^1] - -
-{ - "title": "MQTT Setting", - "uri": "/mqtt_setting", - "menu": true, - "element": [ - { - "name": "header", - "type": "ACText", - "value": "MQTT broker settings
", - "style": "text-align:center;color:#2f4f4f;" - }, - { - "name": "caption", - "type": "ACText", - "value": "Publishing the WiFi signal strength to MQTT channel. RSSI value of ESP8266 to the channel created on ThingSpeak", - "style": "font-family:serif;color:#4682b4;" - }, - { - "name": "mqttserver", - "type": "ACInput", - "value": "", - "placeholder": "MQTT broker server", - "label": "Server" - }, - { - "name": "channelid", - "type": "ACInput", - "value": "", - "label": "Channel ID" - }, - { - "name": "userkey", - "type": "ACInput", - "value": "NRTFYGJ6TJFGX4RC", - "label": "User Key" - }, - { - "name": "apikey", - "type": "ACInput", - "value": "", - "label": "API Key" - }, - { - "name": "period", - "type": "ACRadio", - "label": "Update period", - "value": [ - "30 sec.", - "60 sec.", - "180 sec." - ], - "arrange": "vertical", - "checked": 1 - }, - { - "name": "newline", - "type": "ACElement", - "value": "
" - }, - { - "name": "uniqueid", - "type": "ACCheckbox", - "value": "unique", - "label": "Use APID unique", - "checked": false - }, - { - "name": "hostname", - "type": "ACInput", - "label": "ESP host name", - "value": "" - }, - { - "name": "save", - "type": "ACSubmit", - "value": "Save&Start", - "uri": "/mqtt_save" - }, - { - "name": "discard", - "type": "ACSubmit", - "value": "Discard", - "uri": "/" - } - ] -} -``` -