Skip to content

updateVoteStatusToESP function #9

Description

@MagnusLii

Update Vote Status Function

Goal

This function handles the updating of the voting system's current status by generating a JSON string that encapsulates the status details.

MQTT message JSON Format

{
  "VoteTitle": "title of vote",
  "VoteType": "private/public",
  "VoteStatus": "started/ended"
}

Arguments

  • Vote Title String: Specifies the title of the vote in question.
  • Vote Type String: Indicates whether the vote is private or public.
  • Boolean Value: Specifies whether the vote has started (True) or ended (False).

Returns

  • JSON String: Contains all outlined information.

Function Name: updateVoteStatusToESP

Metadata

Metadata

Assignees

No one assigned

    Labels

    ESPAnything ESP related

    Projects

    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions