Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
406 B

/*
Part of MQTT and API modules
*/
#pragma once
#include "espurna.h"
#include <vector>
#include <utility>
enum class PayloadStatus {
Off = 0,
On = 1,
Toggle = 2,
Unknown = 0xFF
};
using rpc_payload_check_t = PayloadStatus(*)(const char*);
bool rpcHandleAction(const String& action);
PayloadStatus rpcParsePayload(const char* payload, const rpc_payload_check_t ext_check = nullptr);