Hi there, can somebody explain me the difference between setAP and softAP in running in native mode.
I try to have a webserver with password. Tried with code on differennt ways :
Public Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
'Log(wifi.StartAccessPoint2("WHHL38","test"))
'Log(wifi.StartAccessPoint("WHHL38"))
Log(wifi.AccessPointIp)
RunNative("softAP", Null)
Log(wifi.AccessPointIp)
Log(wifi.LocalIp)
server.Initialize(80, "server_NewConnection")
LEDPin.Initialize(16, LEDPin.MODE_OUTPUT)
LEDPin.DigitalWrite(True)
server.Listen
End Sub
1. it says softAP is not available.
2. I have seen wehn you use StartAccessPoint2 it ends up with Wifi.SoftAP etc, seems this should automatic fire this event of SoftAP
3. Using StartAccessPoint2 together with setAP does compile but is working with old SSID
4. Setting Public variables ssid and password, comment out StartAccessPoint (as wel as StartAccessPoint2) and runnative the setAP dos not work either.
5. I can connect using StartAccessPoint and runnative("setASP") but the problem is it needs to be protected by password. In orginal Arduino IDE code i have that working but wanna use B4R
Please give directions how to do this in B4R
Best regards, Jan
I try to have a webserver with password. Tried with code on differennt ways :
Public Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
'Log(wifi.StartAccessPoint2("WHHL38","test"))
'Log(wifi.StartAccessPoint("WHHL38"))
Log(wifi.AccessPointIp)
RunNative("softAP", Null)
Log(wifi.AccessPointIp)
Log(wifi.LocalIp)
server.Initialize(80, "server_NewConnection")
LEDPin.Initialize(16, LEDPin.MODE_OUTPUT)
LEDPin.DigitalWrite(True)
server.Listen
End Sub
1. it says softAP is not available.
2. I have seen wehn you use StartAccessPoint2 it ends up with Wifi.SoftAP etc, seems this should automatic fire this event of SoftAP
3. Using StartAccessPoint2 together with setAP does compile but is working with old SSID
4. Setting Public variables ssid and password, comment out StartAccessPoint (as wel as StartAccessPoint2) and runnative the setAP dos not work either.
5. I can connect using StartAccessPoint and runnative("setASP") but the problem is it needs to be protected by password. In orginal Arduino IDE code i have that working but wanna use B4R
Please give directions how to do this in B4R
Best regards, Jan