After 8ea7778 the readme described the behaviour as 1.2.0 while the package still said 1.1.0: PlatformIO listed "Alex2ESP @ 1.1.0" in the dependency graph, and the devices reported softwareVersion and firmwareVersion 1.1.0 to Alexa.
The choice made here: the number changes now, with the first commits of the 1.2.0 work, and not in the commit that closes the checkpoint. From this commit on the readme, the package files and the code agree at every commit of the branch, and nothing has to be remembered before the tag. The branch is not a release until it is tagged.
The code had the number twice, as the softwareVersion member of AlexaDevice and as a literal for firmwareVersion. Both now use ALEX2ESP_VERSION from the new src/AlexaVersion.h, so a release changes three places: that header, library.json and library.properties. The readme's hint for pinning a release keeps v1.1.0, the newest tag that exists.
For a sketch: getSoftwareVersion() and the discovery attributes say 1.2.0.
examples/basicLight.cpp for d1_mini, static RAM / flash in bytes: 34,452 / 337,461 -> 34,452 / 337,461, no warnings; the dependency graph of the build says "Alex2ESP @ 1.2.0".
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
97 lines
2.3 KiB
Text
97 lines
2.3 KiB
Text
#######################################
|
|
# Syntax Coloring Map For Alex2ESP
|
|
#######################################
|
|
|
|
#######################################
|
|
# Datatypes (KEYWORD1)
|
|
#######################################
|
|
|
|
Alex2ESP KEYWORD1
|
|
Alex2ESPState KEYWORD1
|
|
AlexaDevice KEYWORD1
|
|
AlexaInterface KEYWORD1
|
|
AlexaInterfaceType KEYWORD1
|
|
AlexaInterfaceUtils 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
|