Edge Applications
Device Management
IoT
Contact Us
Login
Documentation
current
v4.12
v4.11
v4.10
v4.9
v4.8
v4.7
v4.6
v4.5
v4.4
v4.3
v4.2
v4.1
v4.0
v3.4
v3.3
Mistake on this page?
Email us
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
mbed-cloud-client
mbed-client
mbed-client
m2mreportobserver.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 ARM Limited. All rights reserved.
3
* SPDX-License-Identifier: Apache-2.0
4
* Licensed under the Apache License, Version 2.0 (the License); you may
5
* not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an AS IS BASIS, WITHOUT
12
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef M2MREPORTOBSERVER_H
17
#define M2MREPORTOBSERVER_H
18
19
#include <inttypes.h>
20
#include <
mbed-client/m2mvector.h
>
21
28
class
M2MReportObserver
29
{
30
public
:
31
41
virtual
bool
observation_to_be_sent
(
const
m2m::Vector<uint16_t>
&changed_instance_ids,
42
uint16_t obs_number,
43
bool
send_object =
false
) = 0;
44
45
};
46
47
#endif // M2MREPORTOBSERVER_H
M2MReportObserver
Definition:
m2mreportobserver.h:28
m2mvector.h
A simple C++ Vector class, used as replacement for std::vector.
m2m::Vector
Definition:
m2mvector.h:30
M2MReportObserver::observation_to_be_sent
virtual bool observation_to_be_sent(const m2m::Vector< uint16_t > &changed_instance_ids, uint16_t obs_number, bool send_object=false)=0
An observation callback to be sent to the server due to a change in the observed parameter.