Mirror of espurna firmware for wireless switches and more
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.
 
 
 
 
 
 

26 lines
492 B

/*
Part of MQTT and API modules
*/
#pragma once
#include <Arduino.h>
#include "types.h"
// --------------------------------------------------------------------------
enum class PayloadStatus {
Off = 0,
On = 1,
Toggle = 2,
Unknown = 0xFF
};
using RpcPayloadCheck = PayloadStatus(*)(espurna::StringView);
bool rpcHandleAction(espurna::StringView);
PayloadStatus rpcParsePayload(espurna::StringView, RpcPayloadCheck);
PayloadStatus rpcParsePayload(espurna::StringView);