Skip to content

Commit

Permalink
Add lib ver to the callhome header (#148)
Browse files Browse the repository at this point in the history
* Added define IASLIB to config.h
* Added lib ver to the callhome header ESP8266
* Added lib ver to the callhome header ESP32
  • Loading branch information
Onno-Dirkzwager committed May 16, 2020
1 parent 78b12c1 commit c81c82a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@

#define FNGPRINT 0
#define CERTIFICATE 1
#define IASLIB "2.1.0-RC3"

// used for storing the config struct to eeprom
#define MAGICBYTES "CFG"
#define MAGICEEP "%"
#define MAGICBYTES "CFG"
#define MAGICEEP "%"

#if WIFI_DHCP_ONLY == false && WIFI_MULTI == true
#undef WIFI_MULTI
Expand Down
1 change: 1 addition & 0 deletions src/espressif/esp32/CallServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ bool CallServer::get(const char* url, String args) {
F("\r\nx-ESP-FLASHCHIP-ID: ") + ESP_GETFLASHCHIPID +
F("\r\nx-ESP-CHIP-ID: ") + ESP_GETCHIPID +
F("\r\nx-ESP-CORE-VERSION: ") + ESP.getSdkVersion() +
F("\r\nx-ESP_IASLIB: ") + IASLIB +

F("\r\nx-ESP-FLASHCHIP-SIZE: ") + ESP.getFlashChipSize() +
F("\r\nx-ESP-VERSION: ") + this->_config->appName + " v" + this->_config->appVersion +
Expand Down
1 change: 1 addition & 0 deletions src/espressif/esp8266/CallServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ bool CallServer::get(const char* url, String args) {
F("\r\nx-ESP-FLASHCHIP-ID: ") + ESP_GETFLASHCHIPID +
F("\r\nx-ESP-CHIP-ID: ") + ESP_GETCHIPID +
F("\r\nx-ESP-CORE-VERSION: ") + ESP.getCoreVersion() +
F("\r\nx-ESP_IASLIB: ") + IASLIB +

F("\r\nx-ESP-FLASHCHIP-SIZE: ") + ESP.getFlashChipSize() +
F("\r\nx-ESP-VERSION: ") + this->_config->appName + " v" + this->_config->appVersion +
Expand Down

0 comments on commit c81c82a

Please sign in to comment.