ESP Resynchronization Method
Goal
This method, implemented as a class function, facilitates the transmission of all necessary information required to resynchronize an ESP to a specified MQTT topic. It constructs a JSON string encapsulating vote details.
JSON string
{
"VoteTitle":"title of vote",
"VoteType":"private/public",
"VoteStatus":"started/ended"
}
Arguments
- Topic Address String: Specifies the address of the topic to which the resynchronization information will be sent.
Returns
- JSON object: containing all vote related information.
Function Name: resynchronizeESP
ESP Resynchronization Method
Goal
This method, implemented as a class function, facilitates the transmission of all necessary information required to resynchronize an ESP to a specified MQTT topic. It constructs a JSON string encapsulating vote details.
JSON string
{ "VoteTitle":"title of vote", "VoteType":"private/public", "VoteStatus":"started/ended" }Arguments
Returns
Function Name:
resynchronizeESP