mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-03-24 06:37:45 +03:00
Update 2020-10-25
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "time_sntp.h"
|
||||
|
||||
#include "connect_wlan.h"
|
||||
|
||||
#include "version.h"
|
||||
|
||||
#include "esp_wifi.h"
|
||||
@@ -94,6 +96,34 @@ esp_err_t info_get_handler(httpd_req_t *req)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
if (_task.compare("Hostname") == 0)
|
||||
{
|
||||
std::string zw;
|
||||
zw = std::string(getHostname());
|
||||
httpd_resp_sendstr_chunk(req, zw.c_str());
|
||||
httpd_resp_sendstr_chunk(req, NULL);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
if (_task.compare("IP") == 0)
|
||||
{
|
||||
std::string zw;
|
||||
zw = std::string(getIPAddress());
|
||||
httpd_resp_sendstr_chunk(req, zw.c_str());
|
||||
httpd_resp_sendstr_chunk(req, NULL);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
if (_task.compare("SSID") == 0)
|
||||
{
|
||||
std::string zw;
|
||||
zw = std::string(getSSID());
|
||||
httpd_resp_sendstr_chunk(req, zw.c_str());
|
||||
httpd_resp_sendstr_chunk(req, NULL);
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const char* GIT_REV="0d90977";
|
||||
const char* GIT_REV="1223aa7";
|
||||
const char* GIT_TAG="";
|
||||
const char* GIT_BRANCH="rolling";
|
||||
const char* BUILD_TIME="2020-10-24 11:45";
|
||||
const char* BUILD_TIME="2020-10-25 19:48";
|
||||
Reference in New Issue
Block a user