Mistake on this page? Email us
m2minterfaceobserver.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 M2M_INTERFACE_OBSERVER_H
17 #define M2M_INTERFACE_OBSERVER_H
18 
19 #include "mbed-client/m2mbase.h"
21 
22 //FORWARD DECLARATION
23 class M2MServer;
24 
33 
34 public:
35 
42  virtual void bootstrap_done(M2MSecurity *server_object) = 0;
43 
52  virtual void object_registered(M2MSecurity *security_object, const M2MServer &server_object) = 0;
53 
60  virtual void object_unregistered(M2MSecurity *server_object) = 0;
61 
70  virtual void registration_updated(M2MSecurity *security_object, const M2MServer & server_object) = 0;
71 
76  virtual void error(M2MInterface::Error error) = 0;
77 
83  virtual void value_updated(M2MBase *base, M2MBase::BaseType type) = 0;
84 
89  virtual void bootstrap_data_ready(M2MSecurity */*security_object*/) { }
90 
91 };
92 
93 #endif // M2M_INTERFACE_OBSERVER_H
Definition: m2mserver.h:31
The base class based on which all LwM2M object models can be created.
Definition: m2mbase.h:63
Definition: m2minterfaceobserver.h:32
virtual void object_unregistered(M2MSecurity *server_object)=0
A callback indicating that the device object has been successfully unregistered from the LWM2M server...
BaseType
Enum to define the type of object.
Definition: m2mbase.h:70
virtual void registration_updated(M2MSecurity *security_object, const M2MServer &server_object)=0
A callback indicating that the device object registration has been successfully updated on the LWM2M ...
Definition: m2msecurity.h:31
M2MInterface. This class provides an interface for handling all mbed Client interface operations defi...
M2MBase. This class is the base class based on which all LwM2M object models can be created...
virtual void value_updated(M2MBase *base, M2MBase::BaseType type)=0
A callback indicating that the value of the resource object is updated by the server.
virtual void object_registered(M2MSecurity *security_object, const M2MServer &server_object)=0
A callback indicating that the device object has been registered successfully to the LWM2M server...
virtual void error(M2MInterface::Error error)=0
A callback indicating that there was an error during the operation.
virtual void bootstrap_done(M2MSecurity *server_object)=0
A callback indicating that the bootstap has been performed successfully.
Error
An enum defining different kinds of errors that can occur during various client operations.
Definition: m2minterface.h:90
virtual void bootstrap_data_ready(M2MSecurity *)
A callback indicating when all bootstrap data has been received.
Definition: m2minterfaceobserver.h:89