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:
41  virtual void init_security_object(uint16_t instance_id) = 0;
42 
49  virtual void bootstrap_done(M2MSecurity *server_object) = 0;
50 
59  virtual void object_registered(M2MSecurity *security_object, const M2MServer &server_object) = 0;
60 
67  virtual void object_unregistered(M2MSecurity *server_object) = 0;
68 
77  virtual void registration_updated(M2MSecurity *security_object, const M2MServer &server_object) = 0;
78 
83  virtual void error(M2MInterface::Error error) = 0;
84 
90  virtual void value_updated(M2MBase *base, M2MBase::BaseType type) = 0;
91 
96  virtual void bootstrap_data_ready(M2MSecurity */*security_object*/) { }
97 
102  virtual void network_status_changed(bool connected) = 0;
103 
107  virtual void paused() = 0;
108 
112  virtual void alert_mode() = 0;
113 
117  virtual void sleep() = 0;
118 };
119 
120 #endif // M2M_INTERFACE_OBSERVER_H
Definition: m2mserver.h:31
Definition: m2mbase.h:54
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:61
virtual void init_security_object(uint16_t instance_id)=0
A callback indicating that the given security object instance requires initialisation.
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
header for M2MInterface
virtual void paused()=0
A callback indicating that client is paused.
Header for M2MBase class.
virtual void network_status_changed(bool connected)=0
A callback indicating network status is changed.
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 sleep()=0
A callback indicating that client is sleeping.
virtual void alert_mode()=0
A callback indicating that client is in alert mode.
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:96
virtual void bootstrap_data_ready(M2MSecurity *)
A callback indicating when all bootstrap data has been received.
Definition: m2minterfaceobserver.h:96