equal
deleted
inserted
replaced
344 _SavedConfiguration = _GetSavedConfiguration() |
344 _SavedConfiguration = _GetSavedConfiguration() |
345 if _SavedConfiguration is not None: |
345 if _SavedConfiguration is not None: |
346 if _CheckConfiguration(_SavedConfiguration): |
346 if _CheckConfiguration(_SavedConfiguration): |
347 _SetPLCConfiguration(_SavedConfiguration) |
347 _SetPLCConfiguration(_SavedConfiguration) |
348 |
348 |
349 WebSettings = NS.newExtensionSetting("BACnet") |
349 WebSettings = NS.newExtensionSetting("BACnet extension", "bacnet_token") |
350 |
350 |
351 # Configure the web interface to include the BACnet config parameters |
351 # Configure the web interface to include the BACnet config parameters |
352 WebSettings.addSettings( |
352 WebSettings.addSettings( |
353 "BACnetConfigParm", # name |
353 "BACnetConfigParm", # name |
354 _("BACnet Configuration"), # description |
354 _("BACnet Configuration"), # description |
382 # Callback function, called (by PLCObject.py) when a PLC program is unloaded from memory |
382 # Callback function, called (by PLCObject.py) when a PLC program is unloaded from memory |
383 """ |
383 """ |
384 |
384 |
385 #PLCObject.LogMessage("BACnet web server extension::OnUnLoadPLC() Called...") |
385 #PLCObject.LogMessage("BACnet web server extension::OnUnLoadPLC() Called...") |
386 |
386 |
387 NS.removeExtensionSetting("BACnet") |
387 NS.removeExtensionSetting("bacnet_token") |
388 |
388 |
389 GetParamFuncs = {} |
389 GetParamFuncs = {} |
390 SetParamFuncs = {} |
390 SetParamFuncs = {} |
391 _WebviewConfiguration = None |
391 _WebviewConfiguration = None |
392 _SavedConfiguration = None |
392 _SavedConfiguration = None |