mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
иправление бага online flasher и ota
This commit is contained in:
@@ -209,14 +209,7 @@ with open("platformio.ini", 'w') as configFile:
|
||||
|
||||
# сохраняем часть применяемого профиля в папку data_svelte для загрузки на контроллер и дальнейшего переиспользования
|
||||
print(f"Saving profile {profile} in /data_svelte/flashProfile.json")
|
||||
shortProfJson = json.loads('{}')
|
||||
shortProfJson['iotmSettings'] = profJson['iotmSettings']
|
||||
shortProfJson['projectProp'] = {
|
||||
'platformio': {
|
||||
'default_envs': deviceName
|
||||
}
|
||||
}
|
||||
shortProfJson['modules'] = profJson['modules']
|
||||
shortProfJson = profJson
|
||||
with open("data_svelte/flashProfile.json", "w", encoding='utf-8') as write_file:
|
||||
json.dump(shortProfJson, write_file, ensure_ascii=False, indent=4, sort_keys=False)
|
||||
|
||||
|
||||
@@ -24,7 +24,82 @@
|
||||
},
|
||||
"projectProp": {
|
||||
"platformio": {
|
||||
"default_envs": "esp8266_4mb"
|
||||
"default_envs": "esp8266_4mb",
|
||||
"comments_default_envs": "choose from: esp8266_4mb or esp32_4mb or esp32cam_4mb or esp32s2_4mb or esp8266_1mb or esp8266_1mb_ota or esp8285_1mb or esp8285_1mb_ota",
|
||||
"envs": [
|
||||
{
|
||||
"name": "esp8266_4mb",
|
||||
"firmware": "0x00000",
|
||||
"littlefs": "0x300000"
|
||||
},
|
||||
{
|
||||
"name": "esp8266_16mb",
|
||||
"firmware": "0x00000",
|
||||
"littlefs": "0x200000"
|
||||
},
|
||||
{
|
||||
"name": "esp32_4mb",
|
||||
"boot_app0": "0xe000",
|
||||
"bootloader_qio_80m": "0x1000",
|
||||
"firmware": "0x10000",
|
||||
"partitions": "0x8000",
|
||||
"littlefs": "0x290000"
|
||||
},
|
||||
{
|
||||
"name": "esp32cam_4mb",
|
||||
"boot_app0": "0xe000",
|
||||
"bootloader_qio_80m": "0x1000",
|
||||
"firmware": "0x10000",
|
||||
"partitions": "0x8000",
|
||||
"littlefs": "0x290000"
|
||||
},
|
||||
{
|
||||
"name": "esp32_16mb",
|
||||
"boot_app0": "0xe000",
|
||||
"bootloader_qio_80m": "0x1000",
|
||||
"firmware": "0x10000",
|
||||
"partitions": "0x8000",
|
||||
"littlefs": "0x910000"
|
||||
},
|
||||
{
|
||||
"name": "esp8266_1mb",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x000bb000"
|
||||
},
|
||||
{
|
||||
"name": "esp8266_1mb_ota",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x000eb000"
|
||||
},
|
||||
{
|
||||
"name": "esp8266_2mb",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x00100000"
|
||||
},
|
||||
{
|
||||
"name": "esp8266_2mb_ota",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x001c0000"
|
||||
},
|
||||
{
|
||||
"name": "esp8285_1mb",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x000bb000"
|
||||
},
|
||||
{
|
||||
"name": "esp8285_1mb_ota",
|
||||
"firmware": "0x00000000",
|
||||
"littlefs": "0x000eb000"
|
||||
},
|
||||
{
|
||||
"name": "esp32s2_4mb",
|
||||
"boot_app0": "0xe000",
|
||||
"bootloader_qio_80m": "0x1000",
|
||||
"firmware": "0x10000",
|
||||
"partitions": "0x8000",
|
||||
"littlefs": "0x290000"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
|
||||
Reference in New Issue
Block a user