Arduino-HomeKit-ESP8266 icon indicating copy to clipboard operation
Arduino-HomeKit-ESP8266 copied to clipboard

Can this library be used/modified to be used with the WiFi101 library?

Open S0meDev99 opened this issue 4 years ago • 0 comments
trafficstars

I am currently trying to create a project to setup a HomeKit remote control to control my smart home devices with the Arduino-HomeKit-ESP8266 library.

I am currently using a Arduino-based TinyCircuit device with the Atmel ATWINC1500 WiFi module. Is there any solutions available or any way to modify the code to make it work with my current WiFi shield, as it uses the WiFi101 library instead of the WiFi library?

I am trying to test the "ConnectWithWPA.ino" from the WiFi101 examples with the HomeKit library. The code requires a "pgmspace.h" which I am not too sure what is it for.

It produced this error when verifying:

Alternatives for osapi.h: []
ResolveLibrary(osapi.h)
  -> candidates: []
In file included from libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/settings.h:171:0,
from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/types.h:27,
from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/ed25519.h:26,
from \libraries\HomeKit-ESP8266\src/crypto.h:12,
from \libraries\HomeKit-ESP8266\src/arduino_homekit_server.h:15,
from \ConnectWithWPA.ino:17:
\libraries\HomeKit-ESP8266\src/user_settings.h:15:10: fatal error: osapi.h: No such file or directory
 #include "osapi.h"
          ^~~~~~~~~
compilation terminated.

After adding osapi.h into the HomeKit src folder.

Alternatives for user_config.h: []
ResolveLibrary(user_config.h)
  -> candidates: []
In file included from \libraries\HomeKit-ESP8266\src/user_settings.h:15:0,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/settings.h:171,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/types.h:27,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/ed25519.h:26,
                 from \libraries\HomeKit-ESP8266\src/crypto.h:12,
                 from \libraries\HomeKit-ESP8266\src/arduino_homekit_server.h:15,
                 from \ConnectWithWPA.ino:17:

\libraries\HomeKit-ESP8266\src/osapi.h:29:10: fatal error: user_config.h: No such file or directory
 #include "user_config.h"
          ^~~~~~~~~~~~~~~
compilation terminated.

After adding one example of user_config.h into the HomeKit src folder.

Alternatives for pgmspace.h: []
ResolveLibrary(pgmspace.h)
  -> candidates: []
In file included from \libraries\HomeKit-ESP8266\src/homekit_debug.h:12:0,
                 from \libraries\HomeKit-ESP8266\src/user_settings.h:16,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/settings.h:171,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/types.h:27,
                 from \libraries\HomeKit-ESP8266\src/wolfssl/wolfcrypt/ed25519.h:26,
                 from \libraries\HomeKit-ESP8266\src/crypto.h:12,
                 from \libraries\HomeKit-ESP8266\src/arduino_homekit_server.h:15,
                 from \ConnectWithWPA.ino:17:
\libraries\HomeKit-ESP8266\src/esp_xpgm.h:15:10: fatal error: pgmspace.h: No such file or directory
 #include <pgmspace.h>
          ^~~~~~~~~~~~
compilation terminated.

My TinyCircuit uses these components:

S0meDev99 avatar Nov 10 '21 03:11 S0meDev99