async def MSetup(self, aPath: str, aParam: list): Vars = ConfApp.Keys() self._ShowTree(Vars) if (not await self.AskYN('Continue')): return R = {} Items = [ 'WiFi Access', [['STA_ESSID', 'SSID', 'oster.com.ua'], ['STA_Paswd', 'Password*', '']] ] R.update(await self.Input(Items, Vars)) Items = [ 'Mqtt Server', [['Mqtt_Host', 'Host', 'vpn2.oster.com.ua'], ['Mqtt_Port', 'Port', 1883], ['Mqtt_Login', 'Login', ''], ['Mqtt_Paswd', 'Password', '']] ] R.update(await self.Input(Items, Vars)) self._ShowTree(R) if (await self.AskYN('Save')): ConfApp.update(R) ConfApp.Save() print('Saved')
async def Exec(self) -> dict: return ConfApp.Keys()