Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CameraHap #71

Closed
xrust83 opened this issue Mar 6, 2021 · 15 comments
Closed

CameraHap #71

xrust83 opened this issue Mar 6, 2021 · 15 comments

Comments

@xrust83
Copy link

xrust83 commented Mar 6, 2021

C:\Users\xrust\w1\ESPHap\examples\ESPHAPCamera\ESPHAPCamera.ino: In function 'void setup()':
ESPHAPCamera:171:22: error: 'hap_set_max_pairing' was not declared in this scope
hap_set_max_pairing(2);
^
sketch\Motion.cpp: In function 'uint8_t send_email(uint8_t*, size_t)':
Motion.cpp:304:21: error: 'hap_setstopflag' was not declared in this scope
hap_setstopflag();
^
Несколько библиотек найдено для "FreeRTOS.h"
Используется: C:\Users\xrust\Documents\Arduino\libraries\ESP32_BLE_Arduino
Не используется: C:\Users\xrust\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\BLE
Несколько библиотек найдено для "wolfssl.h"
Используется: C:\Users\xrust\Documents\Arduino\libraries\wolfssl
Не используется: C:\Program Files (x86)\Arduino\libraries\wolfssl
Несколько библиотек найдено для "WiFi.h"
Используется: C:\Users\xrust\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\WiFi
Не используется: C:\Program Files (x86)\Arduino\libraries\WiFi
Не используется: C:\Users\xrust\Documents\Arduino\libraries\WiFi
exit status 1
'hap_set_max_pairing' was not declared in this scope

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021

hap_set_max_pairing is clearly defined in homeintagration.h
Fo succeess compilation you need proper installation of ESPHap library,( check readme). Or if you don't want to use integration with Apple comment line 14 in config.h

#define ENABLE_HAP   /// Define if device should support Apple Home Kit connection

@Yurik72 Yurik72 closed this as completed Mar 6, 2021
@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

I need a Homekit
I read the description as best I could. I uninstalled version 1.0.5 and installed 1.0.4 for esp32
Copied the wolfssl 3.13.0 library from the archive, but the error does not disappear
Вы понимаете русский?

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

image

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

Я понизил версию для эксперимента. уже вернул обратно 1,0,3

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

1.0.7 это для esp8266, а я пытаюсь прошить камеру плата esp32-Cam в описании сказано что 1,0,5 не работает и проверено с 1,0,4. До прошивки еще не доходит. Базовая прошивка камеры из ардуино CameraWebServer прошивается

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

Может я с платами напутал?

// Select camera model
//#define CAMERA_MODEL_WROVER_KIT_YK
//#define CAMERA_MODEL_WROVER_KIT
//#define CAMERA_MODEL_ESP_EYE
//#define CAMERA_MODEL_M5STACK_PSRAM
//#define CAMERA_MODEL_M5STACK_WIDE
#define CAMERA_MODEL_AI_THINKER

камера AI THINKER ESP32 CAM

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

Спасибо, получилось!!! Снес полностью Arduino IDE установил только esp32 1.0.4 и ESPHap 1.0.7. Скопировал репозиторий (git clone https://github.com/Yurik72/ESPHap/) и вручную повторно переписал файлы ESPHap. так же в директорий c:\Program Files (x86)\Arduino\libraries\ скопировал папку wolfSSL из архива, в ручную заменил файлы settings.h и user_settings.h Прошивка скомпилировалась и камера прошилась. Homekit находит охранное устройство. Какой код сопряжения или где его нужно было ввести в исходнике?

@xrust83
Copy link
Author

xrust83 commented Mar 6, 2021

111-11-111 no work :-(

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

@Yurik72
Copy link
Owner

Yurik72 commented Mar 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants