23 lines
693 B
C
23 lines
693 B
C
![]() |
#ifndef __CAMERA_CLIENT_H__
|
||
|
#define __CAMERA_CLIENT_H__
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include "driver/media_types.h"
|
||
|
#include <driver/uvc_camera.h>
|
||
|
#define CAMERA_CLIENT_UPLOAD_PHOTO_URL "http://lock.xa-poka.com/pokalock/pokaLockFile/catching"
|
||
|
//#define CAMERA_CLIENT_UPLOAD_PHOTO_URL "http://192.168.0.39/upload"
|
||
|
|
||
|
typedef struct camera_take_photo_cb_ops{
|
||
|
void (*on_take_photo_event)(char *photo_id ,int id_len);
|
||
|
}camera_cb_ops_t;
|
||
|
|
||
|
void camera_client_take_photo();
|
||
|
void camera_client_set_cb(camera_cb_ops_t *cb_ops);
|
||
|
//void camera_client_save_photo( );
|
||
|
void camera_client_post_photo(uint8_t *mjpeg_data, int data_len);
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|