Skip to content

[Plan-15] Increment 2: Firmware dispatch #113

@basmeerman

Description

@basmeerman

Context

Plan 15: MQTT SoC Injection — Increment 2 of 3

Scope

Add dispatch cases in esp32.cpp mqtt_receive_callback() for SoC MQTT commands.

Acceptance Criteria

  • MQTT_CMD_INITIAL_SOC → sets InitialSoC, calls RecomputeSoC()
  • MQTT_CMD_FULL_SOC → sets FullSoC, calls RecomputeSoC()
  • MQTT_CMD_ENERGY_CAPACITY → sets EnergyCapacity, calls RecomputeSoC()
  • MQTT_CMD_ENERGY_REQUEST → sets EnergyRequest, calls RecomputeSoC()
  • MQTT_CMD_EVCCID → strncpy to EVCCID
  • ESP32 and CH32 builds pass

Dependencies

Increment 1

Files

  • Modify: src/esp32.cpp

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan-15Plan 15: MQTT SoC Injection

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions