1.1.0: begin(username, password, rootTopic) - the library signature now matches every example, the readme and the website (as published since 2024 no sketch could authenticate: the 64-hex password became the MQTT username). Discovery answers go out over MQTT directly, every device, resumed from loop() under heap pressure within the backend's 5 s window, instead of the 5-slot HTTP queue that silently dropped the rest (which the backend's reconcile then deleted from Alexa). JSON aligned with Alexa / alex2node: event.payload present, ActionMapping payload an object, semantics only when a capability has mappings. Pointer-stable device/capability containers (std::deque), the MQTT payload is copied by length before parsing (no write past the buffer), fragmented directive ids are ignored (a Discover is answered on its first fragment), deprecated ArduinoJson 7 calls replaced, credential Serial prints removed, ESP32 include guards (untested; the ESP8266 is the target). Examples: WIFI_PASSWORD, LED_BUILTIN fallback, string+int print fixes. library.json + library.properties restored (1.1.0; AsyncMqttClient, ArduinoJson 7, ESP Async TCP), LICENSE (MIT), a real keywords.txt, .gitattributes text=auto eol=lf (tree normalised to LF). readme: Forgejo URLs, platformio.ini snippet, Library Manager install, begin() order, INTERIOR_BLIND for blinds, 1.1.0 changelog. All five examples compile warning-free for d1_mini (PlatformIO 6.2, espressif8266) on pve-B450.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
1313f47856
commit
87caad25be
20 changed files with 3117 additions and 2782 deletions
88
keywords.txt
88
keywords.txt
|
|
@ -1,7 +1,81 @@
|
|||
#######################################
|
||||
# Syntax Coloring Map For Espalexa
|
||||
#######################################
|
||||
|
||||
#######################################
|
||||
# Datatypes (KEYWORD1)
|
||||
#######################################
|
||||
#######################################
|
||||
# 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
|
||||
|
||||
#######################################
|
||||
# Methods and Functions (KEYWORD2)
|
||||
#######################################
|
||||
|
||||
begin KEYWORD2
|
||||
loop KEYWORD2
|
||||
getState KEYWORD2
|
||||
getDisconnectReason KEYWORD2
|
||||
getDevice KEYWORD2
|
||||
setName KEYWORD2
|
||||
getName KEYWORD2
|
||||
getEndpointId 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
|
||||
|
||||
#######################################
|
||||
# Constants (LITERAL1)
|
||||
#######################################
|
||||
|
||||
MAX_STATUS_REPORT_SIZE LITERAL1
|
||||
MAX_EVENTS LITERAL1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue