Compare commits
4 Commits
39ca2d205a
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| a484db06c9 | |||
| 9e00fc1135 | |||
| 44a739a0bd | |||
| 873ccc91c5 |
@@ -12,8 +12,8 @@
|
||||
|
||||
The device boots in APSTA mode by default and services the following AP.
|
||||
|
||||
- SSID: odroid-pm
|
||||
- Password: powermate
|
||||
- SSID: powermate
|
||||
- Password: hardkernel
|
||||
|
||||
After connecting to the above AP using a smartphone, etc., you can configure the device by accessing the
|
||||
`http://192.168.4.1` address.
|
||||
|
||||
@@ -77,4 +77,13 @@ execute_process(
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
add_compile_definitions(VERSION_HASH="${GIT_HASH}")
|
||||
add_compile_definitions(VERSION_HASH="${GIT_HASH}")
|
||||
|
||||
execute_process(
|
||||
COMMAND git describe --tags --abbrev=0
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_TAG
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
|
||||
add_compile_definitions(VERSION_TAG="${GIT_TAG}")
|
||||
@@ -15,7 +15,7 @@
|
||||
void app_main(void)
|
||||
{
|
||||
printf("\n\n== ODROID POWER-MATE ===\n");
|
||||
printf("Versgition: %s\n\n", VERSION_HASH);
|
||||
printf("Version: %s-%s\n\n", VERSION_TAG, VERSION_HASH);
|
||||
|
||||
ESP_ERROR_CHECK(i2cdev_init());
|
||||
init_led();
|
||||
|
||||
@@ -193,7 +193,6 @@ static void uart_event_task(void* arg)
|
||||
// Muting this event because it is too noisy
|
||||
break;
|
||||
default:
|
||||
ESP_LOGI(TAG, "unhandled uart event type: %d", event.type);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ static esp_err_t version_get_handler(httpd_req_t* req)
|
||||
{
|
||||
httpd_resp_set_type(req, "application/json");
|
||||
char buf[100];
|
||||
sprintf(buf, "{\"version\": \"%s\"}", VERSION_HASH);
|
||||
sprintf(buf, "{\"version\": \"%s-%s\"}", VERSION_TAG, VERSION_HASH);
|
||||
httpd_resp_send(req, buf, strlen(buf));
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
@@ -349,7 +349,7 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="wifi-password-connect" class="form-label">Password</label>
|
||||
<input type="password" class="form-control" id="wifi-password-connect">
|
||||
<input type="password" class="form-control" id="wifi-password-connect" placeholder="Leave blank for open network">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
Reference in New Issue
Block a user