4 Commits

Author SHA1 Message Date
a484db06c9 Update settings.md docs
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-24 12:26:53 +09:00
9e00fc1135 Add placeholder for password input
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-24 12:21:48 +09:00
44a739a0bd Fix mute unknown uart event
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-24 12:10:09 +09:00
873ccc91c5 Add tag in version info
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-24 12:06:09 +09:00
6 changed files with 15 additions and 7 deletions

View File

@@ -12,8 +12,8 @@
The device boots in APSTA mode by default and services the following AP. The device boots in APSTA mode by default and services the following AP.
- SSID: odroid-pm - SSID: powermate
- Password: powermate - Password: hardkernel
After connecting to the above AP using a smartphone, etc., you can configure the device by accessing the After connecting to the above AP using a smartphone, etc., you can configure the device by accessing the
`http://192.168.4.1` address. `http://192.168.4.1` address.

View File

@@ -78,3 +78,12 @@ execute_process(
) )
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}")

View File

@@ -15,7 +15,7 @@
void app_main(void) void app_main(void)
{ {
printf("\n\n== ODROID POWER-MATE ===\n"); 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()); ESP_ERROR_CHECK(i2cdev_init());
init_led(); init_led();

View File

@@ -193,7 +193,6 @@ static void uart_event_task(void* arg)
// Muting this event because it is too noisy // Muting this event because it is too noisy
break; break;
default: default:
ESP_LOGI(TAG, "unhandled uart event type: %d", event.type);
break; break;
} }
} }

View File

@@ -82,7 +82,7 @@ static esp_err_t version_get_handler(httpd_req_t* req)
{ {
httpd_resp_set_type(req, "application/json"); httpd_resp_set_type(req, "application/json");
char buf[100]; 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)); httpd_resp_send(req, buf, strlen(buf));
return ESP_OK; return ESP_OK;
} }

View File

@@ -349,7 +349,7 @@
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="wifi-password-connect" class="form-label">Password</label> <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> </div>
<div class="modal-footer"> <div class="modal-footer">