B4R Question Ping Compile error

Peter Lewis

Active Member
Licensed User
Longtime User
Hi all
I am busy playing around with the ESP32.

So I have managed to upload the basic code and it connects to my Wifi correctly, but when I add the Ping Lib, I get this error

Could not find a part of the path 'C:\b4raLibs\rESP32Ping\resp32ping'.

Any Ideas ? Thank you

1745236409984.png








This is my Code
Code:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder: ide://run?File=%WINDIR%\System32\explorer.exe&Args=%PROJECT%\Objects\Src

Sub Process_Globals
    Public Serial1 As Serial
    Private wifi As ESP8266WiFi
'    Dim eth As Ethernet
    Private ping As ESP32Ping

End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    'example of connecting to a local network
    If wifi.Connect2("alive", "******") Then
        Log("Connected to network ")
        Log(wifi.LocalIp)
        Log(wifi.Scan)
        Log(ping.PingHost("https://www.****.co.za",5))
        
        
    Else
        Log("Failed to connect to network")
    End If
    
    

End Sub
 

hatzisn

Expert
Licensed User
Longtime User
Maybe keep the XML file where it is and then create a folder with the same name as the XML file without the ".XML" and put all the other files. If this does not work keep outside also the cpp and h file that start with r.
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Or just move the XML to parent folder.
 
Upvote 0
Top