AlexaInterfaces.h/.cpp hold one row per interface in program memory (28: namespace, version, property names, flags, type), each row and string an object of its own, so the linker keeps only the rows a sketch names. addCapability(AlexaInterfaceType) is an always-inline switch that folds to one row; a type without a row is refused with an error. The Event handler gets its type from the capabilities of the device. Versions follow the interface pages (EndpointHealth 3.1, ThermostatController 3.2), HumiditySensor is new, the two withdrawn interfaces and AlexaInterfaceUtils are gone. Display category names are in flash. The discovery objects of the five examples are unchanged: 14 new host tests compare them with what the previous commit announced. basicLight on a D1 mini: static RAM 34,508 -> 30,788, flash 338,533 -> 330,509; it links two rows, EndpointHealth and PowerController. Host tests: 47 -> 61. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
98 lines
2.4 KiB
Text
98 lines
2.4 KiB
Text
#######################################
|
|
# Syntax Coloring Map For Alex2ESP
|
|
#######################################
|
|
|
|
#######################################
|
|
# Datatypes (KEYWORD1)
|
|
#######################################
|
|
|
|
Alex2ESP KEYWORD1
|
|
Alex2ESPState KEYWORD1
|
|
AlexaDevice KEYWORD1
|
|
AlexaInterface KEYWORD1
|
|
AlexaInterfaceType KEYWORD1
|
|
AlexaInterfaces KEYWORD1
|
|
AlexaInterfaceDesc KEYWORD1
|
|
AlexaStatusMessage KEYWORD1
|
|
ActionMapping KEYWORD1
|
|
AlexaActions KEYWORD1
|
|
AlexaActionsUtils KEYWORD1
|
|
FriendlyName KEYWORD1
|
|
DisplayCategory KEYWORD1
|
|
DisplayCategoryUtils KEYWORD1
|
|
EndpointHealth KEYWORD1
|
|
PowerController KEYWORD1
|
|
TemperatureSensorScale KEYWORD1
|
|
AlexaUtils KEYWORD1
|
|
AlexaLog KEYWORD1
|
|
AlexaLogLevel KEYWORD1
|
|
AlexaSendResult KEYWORD1
|
|
AlexaTransport KEYWORD1
|
|
|
|
#######################################
|
|
# Methods and Functions (KEYWORD2)
|
|
#######################################
|
|
|
|
begin KEYWORD2
|
|
loop KEYWORD2
|
|
getState KEYWORD2
|
|
getDisconnectReason KEYWORD2
|
|
getDevice KEYWORD2
|
|
setLogLevel KEYWORD2
|
|
setTimeSource KEYWORD2
|
|
publish KEYWORD2
|
|
timestamp KEYWORD2
|
|
setName KEYWORD2
|
|
getName KEYWORD2
|
|
getEndpointId KEYWORD2
|
|
hasEndpointId KEYWORD2
|
|
setDisplayCategory KEYWORD2
|
|
getDisplayCategory KEYWORD2
|
|
setDescription KEYWORD2
|
|
getDescription KEYWORD2
|
|
setManufacturerName KEYWORD2
|
|
getManufacturerName KEYWORD2
|
|
setManufacturer KEYWORD2
|
|
getManufacturer KEYWORD2
|
|
setModel KEYWORD2
|
|
getModel KEYWORD2
|
|
getSoftwareVersion KEYWORD2
|
|
getDeviceJSON KEYWORD2
|
|
addCapability KEYWORD2
|
|
registerEvent KEYWORD2
|
|
triggerEvent KEYWORD2
|
|
buildStatusMessage KEYWORD2
|
|
getType KEYWORD2
|
|
getTypeString KEYWORD2
|
|
getVersion KEYWORD2
|
|
getProps KEYWORD2
|
|
setInstance KEYWORD2
|
|
addFriendlyName KEYWORD2
|
|
isRetrievable KEYWORD2
|
|
isProactivelyReported KEYWORD2
|
|
setRetrievable KEYWORD2
|
|
setProactivelyReported KEYWORD2
|
|
addActionMapping KEYWORD2
|
|
getJSON KEYWORD2
|
|
AddHealthProp KEYWORD2
|
|
AddPowerControllerProp KEYWORD2
|
|
AddTemperatureSensorProp KEYWORD2
|
|
AddBrightnessControllerProp KEYWORD2
|
|
AddColorTemperatureControllerProp KEYWORD2
|
|
AddToggleControllerProp KEYWORD2
|
|
AddContextProp KEYWORD2
|
|
send KEYWORD2
|
|
printMemoryInfo KEYWORD2
|
|
|
|
#######################################
|
|
# Constants (LITERAL1)
|
|
#######################################
|
|
|
|
ALEX2ESP_MAX_DIRECTIVE LITERAL1
|
|
ALEX2ESP_MAX_MESSAGE LITERAL1
|
|
ALEX2ESP_MAX_QUEUED_DIRECTIVES LITERAL1
|
|
ALEX2ESP_MAX_QUEUED_BYTES LITERAL1
|
|
ALEX2ESP_LOG_MAX LITERAL1
|
|
ALEX2ESP_VERSION LITERAL1
|
|
ALEXA_TIMESTAMP_SIZE LITERAL1
|
|
MAX_EVENTS LITERAL1
|