Update FAQ.md

This commit is contained in:
HomeSpan 2021-07-25 22:02:48 -05:00 committed by GitHub
parent 69efec0d65
commit d9fbab0c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@
* Yes, the standard Arduino libraries `SPI.h` and `Wire.h` both work well within the HomeSpan environment. Typically the code to read from an SPI or I2C device is implemented within the `loop()` method of a HomeSpan Service with any initialization being done in the constructor for that Service. See [TemperatureSensorI2C](https://github.com/HomeSpan/TempSensorI2C) for an illustrative example. * Yes, the standard Arduino libraries `SPI.h` and `Wire.h` both work well within the HomeSpan environment. Typically the code to read from an SPI or I2C device is implemented within the `loop()` method of a HomeSpan Service with any initialization being done in the constructor for that Service. See [TemperatureSensorI2C](https://github.com/HomeSpan/TempSensorI2C) for an illustrative example.
#### Can you add a Web Server to HomeSpan?
* Yes, provided you implement your Web Server using standard ESP32-Arduino libraries, such as `WebServer.h`. See [ProgrammableHub](https://github.com/HomeSpan/ProgrammableHub) for an illustrative example of how to easily integrate a Web Server into HomeSpan. This project also covers various other advanced topics, including TCP slot management, dynamic creation of Accessories, and saving arbitrary data in the ESP32's NVS.
* Note *ESP32AsyncWebServer* cannot be used since it requires a TCP stack that is unfortunately incompatible with HomeSpan.
--- ---
[↩️](README.md) Back to the Welcome page [↩️](README.md) Back to the Welcome page