You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
AutoConnect/mkdocs/acjson.md

1.3 KiB

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

By providing the following JSON document to AutoConnect, you can include the custom Web page as the bellow:

!!! note "Order of elements on a custom Web page" The order in which AutoConnectElements are arranged on the custom Web page is the order described in JSON.

!!! caution "Need ArduinoJson v5" To process the AutoConnectAux & AutoConnectElements written in the JSON is you need to install the ArduinoJson version 5 library.

JSON objects & elements for the custom Web page

JSON document structure for AutoConnectAux


  1. Loading and saving AutoConnect parameters adopt this method.