Mistake on this page? Email us
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 {
29  public:
30 
40  virtual bool observation_to_be_sent(const m2m::Vector<uint16_t> &changed_instance_ids,
41  uint16_t obs_number,
42  bool send_object = false) = 0;
43 
44 };
45 
46 #endif // M2MREPORTOBSERVER_H
Definition: m2mreportobserver.h:27
header for m2m::Vector
A simple C++ Vector class, used as replacement for std::vector.
Definition: m2mvector.h:29
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.