I can't seem to figure out the BrightScript code that makes a player ping an existing network. Also, how would I store the variables to a local web server, so when I open the data logs, I'll have time-stamped entries of whether or not said ping worked?
1 comment
-
Bright Scripters The Diagnostic Web UI has a Ping feature.
I suppose that you could use an HTTP request from the player itself.
Here is the code from the DWS page
<h2>PING</h2>
Please enter a IP/DNS address below that you wish to ping.
<form action="/ping.html" method="get">
<input type="hidden" name="ref" value="diagnostics.html" />
<input class="text" name="dnsname" size="80"/><br>
<input class="button" type="submit" value="Ping"/>
</form>And this is the response, which you'd need to parse, to indicate success or failure.
<h2>Ping Results</h2>
<div class="content">
<pre>
<b>192.168.150.1</b><br>
PING 10/10: 904/1562/6919us<br>
<b>192.168.150.1</b><br>
PING 10/10: 713/880/1005us<br>Once you get a result, you could manually submit a system log, and include a timestamp as part of the entry's text.
I hope that helped.
Script away! :)