Skip to content

Commit

Permalink
Update esp32 platformio to 6.2.0
Browse files Browse the repository at this point in the history
Add some API description
Add esp8285 mcu
Add flash_mode, reset_method, memory_type, filesystem
  • Loading branch information
luc-github committed Feb 2, 2024
1 parent 5999328 commit aafac7e
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 121 deletions.
52 changes: 52 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
"""
This file, `configuration.json`, contains the configuration settings for the application. It is used to store various parameters and options that control the behavior of the application.

"""
# API

The configuration file is `configuration.json` and it is a JSON file, it contains the configuration settings for the application. It is used to store various parameters and options that control the behavior of the application. It is located in src directory with the following fields:
1 - the tabs: the tabs that are displayed in the application
which are the following:
- the features tab, the default tab that is displayed when the application is launched, describes the features of the esp board
- the network tab, the tab that contains the network capabilities of the esp board
- the filesystem tab, the tab that contains the filesystem capabilities of the esp board
- the update tab, the tab that contains the update capabilities of the esp board
- the devices tab, the tab that contains the connected devices capabilities of the esp board
- the security tab, the tab that contains the security settings available
- the others tab, the tab that contains the other settings available that are not included in the previous tabs

2 - the tab is a dictionary that contains the following fields:
- id: the id of the control, it is also used for the dependency between the controls
- description: the description of the control, it is used to display the control in the application
- setting: if the control is a setting or not, (true or false), if false it will be set as comment
- type: the type of the control, it can be one of the following:
- text: a text input
- select: a select input
- boolean: a boolean input
- group: a group of controls
- value: the content of the control, that a list of controls or groups of controls

3 - the control is a dictionary that contains the following fields:
- id: the id of the control, it is also used for the dependency between the controls
- description: the description of the control, it is used to display the control in the application
- label: the label of the control, it is used to display the control in the application
- setting: if the control is a setting or not, (true or false), if false it will be set as comment
- define: if the control is a definition then set the label of the define
- type: the type of the control, it can be one of the following:
- text: a text input
- select: a select input
- boolean: a boolean input
- group: a group of controls
- depends: the id of the control that the current control depends on and the list of values of the control that the current control depends on (value), or the list of values of the control that the current control do not depends on (notvalue), if value is a text define then need to add also the `\"`` of begining and end of string

- value: the content of the control, that a list of controls or groups of controls, if values is -1 it use default value
- options: if type is select, then the value is a list of options, defined by the following fields:
- label: the description of the option
- value: the value of the option
- depend: the id of the control that the current control depends on and value of the control that the current control depends on
- help: the help of the option
- isport: if the control is a port or not, (true or false), if true it will be set as port, and use the available port list accross all process, no need to set the possible options
- ispin: if the control is a pin or not, (true or false), if true it will be set as pin, and use the available pin list accross all process, no need to set the possible options
- usedescforoptions: if the description of the control is used for the options or not, (true or false), if true it will be used for the options, if false it will not be used for the options, so no need to repeat the description in the options
- disableiffalse: disable the control for the configuration if the value of the control is false
2 changes: 1 addition & 1 deletion build/index.html

Large diffs are not rendered by default.

128 changes: 64 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/App/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
import { h } from "preact"
export const Version = "1.0.0-a22"
export const Version = "1.0.0-a24"
Loading

0 comments on commit aafac7e

Please sign in to comment.