SinricPro Library
SinricProMotionsensor.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 "SinricProDevice.h"
11 #include "Capabilities/SettingController.h"
12 #include "Capabilities/PushNotification.h"
13 #include "Capabilities/MotionSensor.h"
14 
15 #include "SinricProNamespace.h"
16 namespace SINRICPRO_NAMESPACE {
17 
24  public SettingController<SinricProMotionsensor>,
25  public PushNotification<SinricProMotionsensor>,
26  public MotionSensor<SinricProMotionsensor> {
27  friend class SettingController<SinricProMotionsensor>;
29  friend class MotionSensor<SinricProMotionsensor>;
30  public:
31  SinricProMotionsensor(const String &deviceId) : SinricProDevice(deviceId, "MOTION_SENSOR") {}
32 };
33 
34 } // SINRICPRO_NAMESPACE
35 
36 using SinricProMotionsensor = SINRICPRO_NAMESPACE::SinricProMotionsensor;
MotionSensor.
Definition: MotionSensor.h:19
PushNotification.
Definition: PushNotification.h:17
Base class for all device types.
Definition: SinricProDevice.h:24
Device to report motion detection events.
Definition: SinricProMotionsensor.h:26