mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 00:14:19 +01:00
27 lines
492 B
C
27 lines
492 B
C
/*
|
|
|
|
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);
|