Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String)
Dim WiFiCfg1 As WiFiCfg
WiFiCfg1.Initialize
I have so changed
B4X:
Type WiFiCfg(SSID As String,WiFiKey As String,EncryptionKey As String,Channel As Int,Interface As String,Metod As Int,DHCPIP As String,DHCPDNS1 As String, DHCPDNS2 As String, ApType As String, Drivers As String, InternalDHCP As Boolean)
basically I added this variable
B4X:
InternalDHCP As Boolean
Use this code to recall the settings
B4X:
If File.Exists(File.DirInternal, "Setings.dat") Then
SettingsCfg.Initialize(File.DirInternal, "Setings.dat")
WiFiCfg1 = SettingsCfg.GetObject("WiFiCfg")
SettingsCfg.Close
End If
I get this error on module KeyValueStore.
B4X:
LastException java.land.illegalArgumentException: invalid value for field