48 int discover(
const std::string &if_name,
bool verbose,
bool report_rp_filter)
68 fprintf(stderr,
"Discover error on interface %s.\n", if_name.c_str());
74 fprintf(stderr,
"No cameras found on interface %s\n", if_name.c_str());
81 uint8_t *mac = camera->
mac;
82 uint8_t *ip = (uint8_t *) &camera->
ip;
83 char pcb_rev = 0x0A + (0x0000000F & camera->
hw_version);
84 int hdl_rev = 0x00000FFF & (camera->
hw_version>>4);
85 printf(
"Found camera serial://%u ", camera->
serial);
87 printf(
"name://%s ", camera->
cam_name);
90 printf(
"MAC: %02x:%02x:%02x:%02x:%02x:%02x iface: %s current IP: %i.%i.%i.%i, PCB rev: %X HDL rev: %3X FW rev: %3X\n",
91 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], camera->
ifName, ip[0], ip[1], ip[2], ip[3],
98 int main(
int argc,
char **argv)
100 if (argc > 1 && !strcmp(argv[1],
"--help"))
103 return discover(argv[1],
true,
true);
107 fprintf(stderr,
"usage: discover [<interface>]\n");
int discover(const std::string &if_name, bool verbose, bool report_rp_filter)
IpCamList * wge100CamListGetEntry(const IpCamList *ipCamList, int index)
int wge100CamListNumEntries(const IpCamList *ipCamList)
int main(int argc, char **argv)
int wge100CamListInit(IpCamList *ipCamList)
int wge100Discover(const char *ifName, IpCamList *ipCamList, const char *ipAddress, unsigned wait_us)
char cam_name[CAMERA_NAME_LEN]