Skip to content

_deviceCfg

モジュール

esp

_deviceCfg.esp

json

_deviceCfg.json

クラス定義

Partition

_deviceCfg.Partition

インスタンス

flash_config [Partition]

_deviceCfg.flash_config = Partition()

wifi_config [Partition]

_deviceCfg.wifi_config = Partition()

関数

add_server

_deviceCfg.add_server()

const

_deviceCfg.const()

flash_read

_deviceCfg.flash_read()

flash_write

_deviceCfg.flash_write()

generate_apikey

_deviceCfg.generate_apikey()

get_apikey

_deviceCfg.get_apikey()

get_config

_deviceCfg.get_config()

get_device_mode

_deviceCfg.get_device_mode()

get_server

_deviceCfg.get_server()

get_server_list

_deviceCfg.get_server_list()

get_startup_beep

_deviceCfg.get_startup_beep()

get_startup_hold

_deviceCfg.get_startup_hold()

get_wifi

_deviceCfg.get_wifi()

get_wifi_list

_deviceCfg.get_wifi_list()

isfile

_deviceCfg.isfile()

romdon_new_apikey

_deviceCfg.romdon_new_apikey()

save_wifi

_deviceCfg.save_wifi()

select_wifi

_deviceCfg.select_wifi()

set_device_mode

_deviceCfg.set_device_mode()

set_server

_deviceCfg.set_server()

set_startup_beep

_deviceCfg.set_startup_beep()

set_startup_hold

_deviceCfg.set_startup_hold()

wifi_read_from_flash

_deviceCfg.wifi_read_from_flash()

定数

APP

_deviceCfg.APP = int(2)

FLIP

_deviceCfg.FLIP = int(4)

FLOW

_deviceCfg.FLOW = int(0)

FLOW_USB

_deviceCfg.FLOW_USB = int(3)

USB

_deviceCfg.USB = int(1)

__file__

_deviceCfg.__file__ = str('deviceCfg.py')

__name__

_deviceCfg.__name__ = str('deviceCfg')

_config_json

_deviceCfg._config_json = dict({'mode': 0, 'server-list': ['flow.m5stack.com', 'sg.flow.m5stack.com'], 'server': 'flow.m5stack.com', 'apikey': 'D2519C12', 'node_id': '0', 'startup-beep': True, 'wifi': ['MM-HOME', '1231231234'], 'start': 0, 'startup-hold': True, 'wifi-list': [['MM-HOME', '1231231234']]})

_defult_config

_deviceCfg._defult_config = str(' {\n    "start": 0,\n    "mode": 0,\n    "apikey": "",\n    "node_id": "0",\n    "startup-hold": true,\n    "startup-beep": true,\n    "server": "flow.m5stack.com",\n    "server-list": ["flow.m5stack.com", "sg.flow.m5stack.com"] \n    "wifi": [],\n    "wifi-list": []\n}\n')

_romdon_flag

_deviceCfg._romdon_flag = bool(False)

_wifi_ssid

_deviceCfg._wifi_ssid = list(['MM-HOME', '1231231234'])

_wifi_ssid_list

_deviceCfg._wifi_ssid_list = list([['MM-HOME', '1231231234']])