Android Question Simple communication from Android(B4A) to ESP8266

Baublanc

Member
Licensed User
Longtime User
Allo Everybody, I create a simple app to put the internal led on/off (LED_BUILTIN). With a browser everything work fine (http://192.168.4.2/Gate/on and http://192.168.4.2/Gate/off), but with the B4A app nothing works. The led don't come On

B4X:
Sub btnGate_Click
    
    Dim j As HttpJob
    j.Initialize("", Me)
    j.Download("http://192.168.4.2/Gate/on")
    Wait For (j) JobDone(j As HttpJob)
    If j.Success Then
        Log(j.GetString)
    End If
    j.Release
    
End Sub

Note: At the location of theESP8266 there no internet.

Thanks
 
Top