From 1cadfbe67d75f0ce433ce5731a8cecadf20ede71 Mon Sep 17 00:00:00 2001 From: kbx81 Date: Mon, 15 Jun 2026 18:59:15 -0500 Subject: [PATCH] Rename Hostname/Device Name commands and add ERROR_BAD_HOSTNAME Renames GET_SET_HOSTNAME -> HOSTNAME and GET_SET_DEVICE_NAME -> DEVICE_NAME (values unchanged at 0x05/0x06) to match the naming used by the in-flight Improv 2.4 work (#32), so that change rebases cleanly. Also adds the spec's ERROR_BAD_HOSTNAME (0x05), returned when a provided hostname is unacceptable. --- src/improv.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/improv.h b/src/improv.h index 3279052..25d549a 100644 --- a/src/improv.h +++ b/src/improv.h @@ -24,6 +24,7 @@ enum Error : uint8_t { ERROR_UNKNOWN_RPC = 0x02, ERROR_UNABLE_TO_CONNECT = 0x03, ERROR_NOT_AUTHORIZED = 0x04, + ERROR_BAD_HOSTNAME = 0x05, ERROR_UNKNOWN = 0xFF, }; @@ -42,8 +43,8 @@ enum Command : uint8_t { GET_CURRENT_STATE = 0x02, GET_DEVICE_INFO = 0x03, GET_WIFI_NETWORKS = 0x04, - GET_SET_HOSTNAME = 0x05, - GET_SET_DEVICE_NAME = 0x06, + HOSTNAME = 0x05, + DEVICE_NAME = 0x06, BAD_CHECKSUM = 0xFF, };