Yurik72 / ESPHap

ESP32/ESP8266 Arduino library for native Apple Homekit Accessory Protocol (HAP)
MIT License
265 stars 60 forks source link

CameraHap #71

Closed xrust83 closed 3 years ago

xrust83 commented 3 years ago

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 commented 3 years ago

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
xrust83 commented 3 years ago

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 commented 3 years ago

image

Yurik72 commented 3 years ago

Ah, ok Library manager doesn’t see the latest version. You cane get latest commit manually from github , without arduino library manager

From: Korneluk Wadim notifications@github.com Sent: Saturday, March 6, 2021 1:23 PM To: Yurik72/ESPHap ESPHap@noreply.github.com Cc: Yurik72 yurik.kovalenko@gmail.com; State change state_change@noreply.github.com Subject: Re: [Yurik72/ESPHap] CameraHap (#71)

https://user-images.githubusercontent.com/58448955/110205049-06811000-7e7f-11eb-8b5b-255e5bc8fda8.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Yurik72/ESPHap/issues/71#issuecomment-791918127 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDREXK3DFT55DFT4GHWXADTCIGBDANCNFSM4YWHIUFQ . https://github.com/notifications/beacon/AKDREXN5MDH5MA7I57CL7RLTCIGBDA5CNFSM4YWHIUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4Z3MLY.gif

Yurik72 commented 3 years ago

Да

From: Korneluk Wadim notifications@github.com Sent: Saturday, March 6, 2021 1:20 PM To: Yurik72/ESPHap ESPHap@noreply.github.com Cc: Yurik72 yurik.kovalenko@gmail.com; State change state_change@noreply.github.com Subject: Re: [Yurik72/ESPHap] CameraHap (#71)

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 Вы понимаете русский?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Yurik72/ESPHap/issues/71#issuecomment-791917197 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDREXMM3IB7WLEQPACVNSTTCIFXBANCNFSM4YWHIUFQ . https://github.com/notifications/beacon/AKDREXPUTNG5T5THTXZLYQLTCIFXBA5CNFSM4YWHIUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4Z3FDI.gif

xrust83 commented 3 years ago

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

Yurik72 commented 3 years ago

Надо брать 1.0.7

From: Korneluk Wadim notifications@github.com Sent: Saturday, March 6, 2021 1:28 PM To: Yurik72/ESPHap ESPHap@noreply.github.com Cc: Yurik72 yurik.kovalenko@gmail.com; State change state_change@noreply.github.com Subject: Re: [Yurik72/ESPHap] CameraHap (#71)

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

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Yurik72/ESPHap/issues/71#issuecomment-791919230 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDREXOW2EAOJUWHTGRNDQ3TCIGULANCNFSM4YWHIUFQ . https://github.com/notifications/beacon/AKDREXLUSERVPISBXTEXRWLTCIGULA5CNFSM4YWHIUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4Z3U7Q.gif

xrust83 commented 3 years ago

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

xrust83 commented 3 years ago

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

// 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 commented 3 years ago

Оно бы прошивалfсь но не работало бы.

Просто возьми вручную последню версию кодов библитотеки ESPHap, после этого все скомпилируеться.

From: Korneluk Wadim notifications@github.com Sent: Saturday, March 6, 2021 2:00 PM To: Yurik72/ESPHap ESPHap@noreply.github.com Cc: Yurik72 yurik.kovalenko@gmail.com; State change state_change@noreply.github.com Subject: Re: [Yurik72/ESPHap] CameraHap (#71)

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

// 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

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Yurik72/ESPHap/issues/71#issuecomment-791924565 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKDREXODNHDR45SLASXGRILTCIKLJANCNFSM4YWHIUFQ . https://github.com/notifications/beacon/AKDREXJPOFONISWTU5XGHODTCIKLJA5CNFSM4YWHIUF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF4Z46VI.gif

xrust83 commented 3 years ago

Спасибо, получилось!!! Снес полностью 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 commented 3 years ago

111-11-111 no work :-(

Yurik72 commented 3 years ago

Код сопряжения 1111 1111 ( 8 единиц)

Sent from my iPhone

On 6 Mar 2021, at 17:34, Korneluk Wadim notifications@github.com wrote:

 111-11-111 no work :-(

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

Yurik72 commented 3 years ago

Странно , он зашит в прошивке там никаких магий, должен сопрягаться без всяких вопросов

Sent from my iPhone

On 6 Mar 2021, at 18:32, yurik.kovalenko@gmail.com wrote:

Код сопряжения 1111 1111 ( 8 единиц)

Sent from my iPhone

On 6 Mar 2021, at 17:34, Korneluk Wadim notifications@github.com wrote:

 111-11-111 no work :-(

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

Yurik72 commented 3 years ago

Возможно проблема wolfssl, возьми полностью мою директорию и замени, потом восстановишь , у меня уже больше 1000 пользователей, так что все должно работать

Sent from my iPhone

On 6 Mar 2021, at 18:32, yurik.kovalenko@gmail.com wrote:

Код сопряжения 1111 1111 ( 8 единиц)

Sent from my iPhone

On 6 Mar 2021, at 17:34, Korneluk Wadim notifications@github.com wrote:

 111-11-111 no work :-(

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.