Added and defined two new config files (one for the screen and one for the servers)

This commit is contained in:
anschrammh 2019-10-20 18:08:57 +02:00
parent d06b1e49d9
commit cd41b61197
5 changed files with 30 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#If this file is not present or if there is an error at parsing time
#default values will be used instead.
#If the password is an empty string aka '', the network will be open
#The blank new line at then end of the file is mendatory. Without it, the last parameter won't be read.
ENABLED : 'true'
SSID : 'The AP ssid you want to put here'

View File

@ -0,0 +1,13 @@
#This config file stores the configuration relative to the oled display
#This file allows you to set the screen's orientation, brightness level, among other
#AUTO_OFF defines the ammount of time before the display go into sleep : duration in ms
#0 is never.
#ORIENTATION can be one of the following values : 0, 90, 180 and 270
#things. The blank new line at then end of the is mendatory. Without it, the last parameter won't be read.
#The blank new line at then end of the file is mendatory. Without it, the last parameter won't be read.
ENABLED : 'true'
DIMMED : 'false'
INVERTED : 'false'
ORIENTATION : 0
AUTO_OFF : 3000

View File

@ -0,0 +1,13 @@
#This config file stores the configuration relative to all the servers running on the board.
#For the moment, there is a web and ftp server. Maybe more to come.
#Ports are between 1 and 65535.
#0 means unlimitted.
#The blank new line at then end of the file is mendatory. Without it, the last parameter won't be read.
WEB_ENABLED : 'true'
WEB_PORT : 80
WEB_MAX_CLIENT : 0
FTP_ENABLED : 'true'
FTP_PORT : 21
FTP_DATA_PORT : 1024
FTP_MAX_CLIENT : 0

View File

@ -2,6 +2,7 @@
#to a wifi hotspot
#If this file is not present or if there is an error at parsing time
#only the AP functionality will be enabled
#The blank new line at then end of the file is mendatory. Without it, the last parameter won't be read.
ENABLED : 'true'
SSID : 'Your Wifi Router SSID'

View File

@ -37,6 +37,8 @@ typedef enum { GPIO_0 = 0,
//SD card file structure :
#define AP_CFG_FILE "/CONFIG/AP.CFG"
#define STA_CFG_FILE "/CONFIG/STA.CFG"
#define SCREEN_CFG_FILE "/CONFIG/SCREEN.CFG"
#define SERVER_CFG_FILE "/CONFIG/SERVER.CFG"
#define WWW_DIR "/WWW"
#define LOG_DIR "/LOGS"
#define FTP_DIR "/FTP"