0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-06-26 03:21:22 +02:00
doodle3d-firmware/src/conf_defaults.lua

48 lines
1.3 KiB
Lua
Raw Normal View History

local M = {}
2013-07-17 17:43:33 +02:00
--NOTE: proposed notation for baseline configuration (containing defaults as well as type and constraint information)
--the table name is the configuration key; min, max and regex are all optional; type is one of: {bool, int, float, string}
--NOTE: pcall protects from invocation exceptions, which is what we need except
--during debugging. This flag replaces them with a normal call so we can inspect stack traces.
M.DEBUG_PCALLS = true
--This enables debugging of the REST API from the command-line, specify the path and optionally the request method as follows: 'p=/mod/func rq=POST'
M.DEBUG_API = true
--REST responses will contain 'module' and 'function' keys describing what was requested
M.API_INCLUDE_ENDPOINT_INFO = false
2013-07-17 17:43:33 +02:00
M.apSsid = {
default = 'd3d-ap-%%MAC_ADDR_TAIL%%',
type = 'string',
description = 'Access Point mode SSID',
min = 1,
max = 32
}
M.apAddress = {
default = '192.168.10.1',
type = 'string',
description = 'Access Point mode IP address',
regex = '%d+\.%d+\.%d+\.%d+'
}
M.apNetmask = {
default = '255.255.255.0',
type = 'string',
description = 'Access Point mode netmask',
regex = '%d+\.%d+\.%d+\.%d+'
}
M.temperature = {
default = 230,
type = 'int',
2013-07-17 17:43:33 +02:00
description = '3D printer temperature',
min = 0,
max = 350
}
return M