mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Merge pull request #377 from biveraxe/ver4dev
Исправления багов в сборщике и при получении IP в сценариях
This commit is contained in:
@@ -32,7 +32,6 @@ import configparser
|
|||||||
import os, json, sys, getopt
|
import os, json, sys, getopt
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import shutil
|
import shutil
|
||||||
from distutils.dir_util import copy_tree
|
|
||||||
|
|
||||||
|
|
||||||
config = configparser.ConfigParser() # создаём объекта парсера INI
|
config = configparser.ConfigParser() # создаём объекта парсера INI
|
||||||
@@ -128,9 +127,9 @@ deviceName = profJson['projectProp']['platformio']['default_envs']
|
|||||||
|
|
||||||
# заполняем папку /data файлами прошивки в зависимости от устройства
|
# заполняем папку /data файлами прошивки в зависимости от устройства
|
||||||
if deviceName == 'esp8266_1mb_ota' or deviceName == 'esp8285_1mb_ota' or deviceName == 'esp8266_2mb_ota':
|
if deviceName == 'esp8266_1mb_ota' or deviceName == 'esp8285_1mb_ota' or deviceName == 'esp8266_2mb_ota':
|
||||||
copy_tree("data_lite", "data_svelte")
|
shutil.copytree("data_lite", "data_svelte", symlinks=False, ignore=None, ignore_dangling_symlinks=False, dirs_exist_ok=True)
|
||||||
else:
|
else:
|
||||||
copy_tree("data_full", "data_svelte")
|
shutil.copytree("data_full", "data_svelte", symlinks=False, ignore=None, ignore_dangling_symlinks=False, dirs_exist_ok=True)
|
||||||
|
|
||||||
deviceType = 'esp32*'
|
deviceType = 'esp32*'
|
||||||
if not 'esp32' in deviceName:
|
if not 'esp32' in deviceName:
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ void globalVarsSync()
|
|||||||
|
|
||||||
mqttRootDevice = mqttPrefix + "/" + chipId;
|
mqttRootDevice = mqttPrefix + "/" + chipId;
|
||||||
|
|
||||||
|
jsonWriteStr_(settingsFlashJson, "ip", WiFi.localIP().toString());
|
||||||
|
|
||||||
// это не используется - удалить в последствии
|
// это не используется - удалить в последствии
|
||||||
jsonWriteStr_(settingsFlashJson, "root", mqttRootDevice);
|
jsonWriteStr_(settingsFlashJson, "root", mqttRootDevice);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user