43 int main(
int argc,
char** argv)
45 if (argc != 2 || !strcmp(argv[1],
"--help")) {
46 fprintf(stderr,
"Usage: %s <camera_url> > dump.bin\n", argv[0]);
49 char* camera_url = argv[1];
57 fprintf(stderr,
"Matching URL %s : %s\n", camera_url, errmsg);
65 fprintf(stderr,
"Unable to create ARP entry (are you root?), continuing anyway\n");
67 fprintf(stderr,
"IP address configuration failed\n");
83 fprintf(stderr,
"Flash read error\n");
90 fprintf(stderr,
"error: fwrite did not write one item. Image will be corrupt.\n");
94 fprintf(stderr,
"\n");
int wge100ReliableFlashRead(const IpCamList *camInfo, uint32_t address, uint8_t *pageDataOut, int *retries)
int wge100Configure(IpCamList *camInfo, const char *ipAddress, unsigned wait_us)
#define ERR_CONFIG_ARPFAIL
int wge100FindByUrl(const char *url, IpCamList *camera, unsigned wait_us, const char **errmsg)
int main(int argc, char **argv)