SinricPro Library
Loading...
Searching...
No Matches
SinricProInterface.h
1
/*
2
* Copyright (c) 2019 Sinric. All rights reserved.
3
* Licensed under Creative Commons Attribution-Share Alike (CC BY-SA)
4
*
5
* This file is part of the Sinric Pro (https://github.com/sinricpro/)
6
*/
7
8
#pragma once
9
10
#include "ArduinoJson.h"
11
#include "SinricProNamespace.h"
12
#include "SinricProQueue.h"
13
namespace
SINRICPRO_NAMESPACE {
14
15
class
SinricProInterface {
16
friend
class
SinricProDevice;
17
18
protected
:
19
virtual
void
sendMessage(JsonDocument& jsonEvent) = 0;
20
virtual
String sign(
const
String& message) = 0;
21
virtual
JsonDocument prepareEvent(String deviceId,
const
char
* action,
const
char
* cause) = 0;
22
virtual
unsigned
long
getTimestamp() = 0;
23
virtual
bool
isConnected() = 0;
24
};
25
26
}
// namespace SINRICPRO_NAMESPACE
esp8266-esp32-sdk
src
SinricProInterface.h
Generated by
1.9.8