Channel 11 defaults, ESP-NOW driver config and rig/desktop updates
Moves the controller, bridge and led-driver default ESP-NOW channel to 11 and updates the led-driver and led-tool submodule pointers. Includes the rest of the working tree: web UI, desktop and sim-controller changes, API and bridge code, graphify output, and the .gitea and fixture-driver folders. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
35207a868a
commit
edf35e9c71
280 files changed
+24043
-1756
No files matched your search
+15
-2
@@ -20,7 +20,7 @@ int engine_zone_targets(const char *zone_id, char out[][GROUP_ID_MAX], int max);
|
||||
cJSON *engine_preset_payload(const char *preset_id);
|
||||
|
||||
// Drivers in group gid (a group id, "z<zone>" or a driver's own "d<mac>"), as 12-hex MACs from the
|
||||
// device list. Call with the store locked.
|
||||
// device list: ESP-NOW drivers, and Wi-Fi drivers whose record has a "mac". Call with the store locked.
|
||||
int engine_group_macs(const char *gid, char out[][13], int max);
|
||||
// Wi-Fi drivers (listed by hostname) in the zone's groups. Call with the store locked.
|
||||
int engine_zone_wifi_ids(const char *zone_id, char out[][GROUP_ID_MAX], int max);
|
||||
@@ -28,6 +28,18 @@ int engine_zone_wifi_ids(const char *zone_id, char out[][GROUP_ID_MAX], int max)
|
||||
const char *engine_zone_current(const char *zone_id);
|
||||
// Is the driver with this MAC (12 hex digits) in one of the zone's groups? Call with the store locked.
|
||||
bool engine_mac_in_zone(const char *hex12, const char *zone_id);
|
||||
// What the driver with this MAC last got from a zone: the newest play/stop/note among the zones holding it
|
||||
// ("off" included), with an order number that grows with every such call. False when none of its zones has played.
|
||||
// Call with the store locked.
|
||||
bool engine_driver_current(const char *hex12, char *preset, size_t len, uint32_t *seq);
|
||||
// Is the driver with this MAC (12 hex digits) one of the rig page's simulated drivers ("sim": true in its
|
||||
// device record)? Call with the store locked.
|
||||
bool engine_mac_is_sim(const char *hex12);
|
||||
// Is the driver with this MAC a Wi-Fi driver (its record, listed by hostname, has this "mac")? Call with the
|
||||
// store locked.
|
||||
bool engine_mac_is_wifi(const char *hex12);
|
||||
// Does group gid (as engine_group_macs takes it) hold a simulated driver? Call with the store locked.
|
||||
bool engine_group_has_sim(const char *gid);
|
||||
// Record preset_id as what zone_id plays, when the UI has sent it to the drivers itself
|
||||
void engine_zone_note(const char *zone_id, const char *preset_id);
|
||||
|
||||
@@ -45,7 +57,8 @@ esp_err_t engine_send_presets(const cJSON *ids, bool save, const char *def, cons
|
||||
// board into the Wi-Fi device. Call without the store lock held.
|
||||
void engine_wifi_mac(const char *host, const char *mac);
|
||||
|
||||
// Zones or devices changed: re-send group membership to every registered ESP-NOW driver
|
||||
// Zones or devices changed: re-send group membership to every registered ESP-NOW driver. Returns at once
|
||||
// (a background task sends it, without the store lock), so it may be called with or without the lock held.
|
||||
void engine_groups_changed(void);
|
||||
// POST /devices/groups: send every ESP-NOW driver its groups, including silent ones, and wait for the
|
||||
// acks. Call without the store lock held.
|
||||
|
||||
Reference in new issue
Block a user