Hi,
Just wondering how I can ping a IP address and get a reply back saying Pass or Fail if it was able to be pinged.
I have used the following code but I can't work out how to make it say Pass or Fail
Anyone able to help so it only says Pass or Fail if the IP was able to be pinged ?
Just wondering how I can ping a IP address and get a reply back saying Pass or Fail if it was able to be pinged.
I have used the following code but I can't work out how to make it say Pass or Fail
B4X:
Dim p As Phone
Dim sb As StringBuilder
sb.Initialize
p.Shell("ping -c 1 192.168.0.1",Null,sb,Null)
Log(sb)
Anyone able to help so it only says Pass or Fail if the IP was able to be pinged ?