Open
Conversation
…ouse#19 Issue ThisSmartHouse#21 (issues with newer esp8266 Arduino cores 3.0.x) Changed the ESP8266 core CoogleIOT::checkForFirmwareUpdate() to replace the call to the deprecated and removed (since version 3.0) ESPhttpUpdate::update() with the currently supported function ESP8266HTTPUpdate::update(). The meber function bool CoogleIOT::verifyFlashConfiguration() lacks a 'return <value> statement causing the code to crash on return. Added the The ESP exception decoder does not help too much, by the way, as it locates the fault elsewhere. Issue ThisSmartHouse#7 (configuration when wifi config is invalid) The problem lies in CoogleIOT::loop() trying to reconnect and resetting over and over again rendering the library unable to process configuration portal requests. A new member function has been added, CoogleIOT::loopWebServer() to be used in a loop when connection cannot be established. Its use is demonstrated in the DHTSensor.ino sketch in the examples folder. Issue ThisSmartHouse#19 (Custom items) Two application specific fields, up to 25 character long have been added to the configuration portal interfacew (MQTT tab). They can set and retrived via new API calls. Their names (used as labels in the configuration portal) can also be set. Usage is shown in the DHTSensor.ino example. --- Other --- * Changed version number to 1.3.2. * Added an example sowing the new features * Merged pull request ThisSmartHouse#20 (depends=PubSubClient in library.properties). * Update README.md and keywords.txt with the changes. Changes: - modified: .gitignore modified: README.md new file: examples/DHT11Sensor/DHT11Sensor.ino new file: examples/DHT11Sensor/README.md modified: keywords.txt modified: library.properties modified: screenshots/mqtt-screen.png modified: screenshots/status-screen.png modified: screenshots/wifi-screen.png modified: src/ArduinoJson.h modified: src/CoogleIOT.cpp modified: src/CoogleIOT.h modified: src/CoogleIOTConfig.h modified: src/CoogleIOTWebserver.cpp modified: src/EEPROM_map.h modified: src/webpages/home.h modified: src/webpages/home.html
If a Print-derived object is specified in the added constructor, it will
be used instead the Serial object to echo log messages to the console.
The change was intended to allow other console implementations,
specifically the TelnetSerial class.
New constructors:
- CoogleIOT(Print& the_tty)
- CoogleIOT(int statusPin, Print& the_tty)
Now the user may set static network configuration parameters (IP address, subnet mask, gateway and DNS servers), bypassing DHCP. See : - setStaticAddress() - clearStaticAddress()
|
Thanks for fixin #21 !! This PR needs to be merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixing #7, #21, #20 and (partially) #19, #28
Issue #21 (issues with newer esp8266 Arduino cores 3.0.x)
Changed the ESP8266 core
CoogleIOT::checkForFirmwareUpdate()to replace the call to the deprecated and removed (since version 3.0)ESPhttpUpdate::update()with the currently supported functionESP8266HTTPUpdate::update().The member function
bool CoogleIOT::verifyFlashConfiguration()lacks a 'return ` statement causing the code to crash on return. Added the The ESP exception decoder does not help too much, by the way, as it locates the fault elsewhere.Issue #7 (configuration when wifi config is invalid)
The problem lies in
CoogleIOT::loop()trying to reconnect and resetting over and over again rendering the library unable to process configuration portal requests.A new member function has been added,
CoogleIOT::loopWebServer()to be used in a loop when connection cannot be established. Its use is demonstrated in theDHTSensor.inosketch in the examples folder.Issue #19 (Custom items)
Two application specific fields, up to 25 character long have been added to the configuration portal interfacew (MQTT tab). They can set and retrived via new API calls. Their names (used as labels in the configuration portal) can also be set. Usage is shown in the
DHTSensor.inoexample.--- Other ---
DHT11Sensor.ino) showing the new featureslibrary.properties).CoogleIOT::loop()