move magic and appName into specific code file
This commit is contained in:
@ -15,3 +15,6 @@ configItems = [
|
|||||||
{"label":"MQTT DebugTopic", "key":"mqttDebugTopic", "type":"C", "length":64, "default":"IoT/RgbLed1/Debug"},
|
{"label":"MQTT DebugTopic", "key":"mqttDebugTopic", "type":"C", "length":64, "default":"IoT/RgbLed1/Debug"},
|
||||||
{"label":"DebugMode", "key":"debugMode", "type":"I", "default":0}
|
{"label":"DebugMode", "key":"debugMode", "type":"I", "default":0}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
magic = 0xC0DE0006
|
||||||
|
appName = "ESP8266 based RgbLedLight"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
from Cheetah.Template import Template
|
from Cheetah.Template import Template
|
||||||
from ConfigDataStructure import configItems
|
from ConfigDataStructure import configItems, magic, appName
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -23,8 +23,6 @@ from ConfigDataStructure import configItems
|
|||||||
#]
|
#]
|
||||||
|
|
||||||
|
|
||||||
magic = 0xC0DE0005
|
|
||||||
appName = "ESP8266 based TwoLedSignal"
|
|
||||||
confWifiSsid = "espconfig"
|
confWifiSsid = "espconfig"
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
|
Reference in New Issue
Block a user