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
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
True) or ended (False).Returns
Function Name:
updateVoteStatusToESP