Hello,
I am starting with B4R and try to set up a ESP 8266. I have it set up as AP and as Network client and have it as a serial websocket. My problem now is that during the startup of the module, I want to send it through the serial port the SSID name, the WLAN Password and the mode (AP or Client).
through the serialisation I have divided 3 objects with the info
Object(0) is the mode
Object(1) is SSIDName
Object (2) is Password
The problem that i encounter is that it does not allow me to change a string. How can I get the object in a string and put it in the wifi.Connect(SSIDNaam)
It is probably simple but I am getting a bit stuck..
I am starting with B4R and try to set up a ESP 8266. I have it set up as AP and as Network client and have it as a serial websocket. My problem now is that during the startup of the module, I want to send it through the serial port the SSID name, the WLAN Password and the mode (AP or Client).
through the serialisation I have divided 3 objects with the info
Object(0) is the mode
Object(1) is SSIDName
Object (2) is Password
The problem that i encounter is that it does not allow me to change a string. How can I get the object in a string and put it in the wifi.Connect(SSIDNaam)
object to string:
Sub Process_Globals
Private SSIDNaam As string
Private SSIDPass As Object
End Sub
Sub astreamCom_NewData(Buffer() As Byte)
Dim be(50) As Object 'used as a storage buffer.
Dim objects() As Object = ser.ConvertBytesToArray(Buffer, be)
If objects.Length < 3 Then Return
Instelling= objects(0)
SSIDNaam = objects(1)
SSIDPass = objects(2)
end sub
It is probably simple but I am getting a bit stuck..