B4R Question ESP8266Ping lib trouble...

peacemaker

Expert
Licensed User
Longtime User
HI, All

It looks like the Ping lib stopped to work.
B4X:
Sub Process_Globals
    Public Serial1 As Serial
    Private wifi As ESP8266WiFi
    Private ping As ESP8266Ping
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log(CRLF, "AppStart")
    'example of connecting to a local network
    If wifi.Connect2("wifinetwork", "password") Then
        Log("Connected to network")
        Log(ping.PingHost("google.com", 3)) 
    Else
        Log("Failed to connect to network")
    End If
End Sub

Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 283744 bytes to 208136...
Writing at 0x00000000... (7 %)
Writing at 0x00004000... (15 %)
Writing at 0x00008000... (23 %)
Writing at 0x0000c000... (30 %)
Writing at 0x00010000... (38 %)
Writing at 0x00014000... (46 %)
Writing at 0x00018000... (53 %)
Writing at 0x0001c000... (61 %)
Writing at 0x00020000... (69 %)
Writing at 0x00024000... (76 %)
Writing at 0x00028000... (84 %)
Writing at 0x0002c000... (92 %)
Writing at 0x00030000... (100 %)
Wrote 283744 bytes (208136 compressed) at 0x00000000 in 5.2 seconds (effective 439.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
������������
AppStart
Connected to network
0

Tried 3 various web-sites, always zero result.
It's trouble with latest Arduino 2.3.2, SDK of ESP8266 is the latest v.3.1.2.

Old .bin compiled by Arduino 1.x - works OK.
 
Last edited:
Top