murphyslemon / Raspberry_Pi_Server

International Sensor Development Project: This project is a voting system that uses a raspberry pi server and multiple voting devices. The system is easy, secure, scalable, and supports anonymous and registered voting. This repository focuses on the Raspberry Pi server.
0 stars 3 forks source link

updateVoteStatusToESP function #9

Open MagnusLii opened 7 months ago

MagnusLii commented 7 months ago

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

Returns

Function Name: updateVoteStatusToESP