allow detection of all cameras
This commit is contained in:
@@ -24,7 +24,7 @@ namespace robospot_camera_finder
|
||||
// UDP discovery constants
|
||||
private const int SEND_PORT = 7701;
|
||||
private const int RECEIVE_PORT = 7711;
|
||||
private const string BROADCAST_ADDRESS = "10.255.255.255";
|
||||
private const string BROADCAST_ADDRESS = "255.255.255.255";
|
||||
private const byte DEF_REQ_SCAN = 1;
|
||||
private const byte RES_REQ_SCAN = 11;
|
||||
|
||||
|
||||
@@ -25,6 +25,11 @@ namespace robospot_camera_finder
|
||||
cam_ip = ip;
|
||||
this.Text = name;
|
||||
|
||||
if (!cam_ip.StartsWith("10."))
|
||||
{
|
||||
MessageBox.Show("Camera is not on the 10.0.0.0/8 network, the RoboSpot might not find it.", "Wrong IP", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
string rtsp_link = "rtsp://" + ip + "/profile2/media.smp";
|
||||
|
||||
updateZoomSlider();
|
||||
|
||||
Reference in New Issue
Block a user