47 UpdateSupportedObjects,
73 UnsupportedPackageType,
138 const String &value) m2m_deprecated;
148 int64_t value) m2m_deprecated;
159 const uint8_t *value,
160 const uint32_t length) m2m_deprecated;
189 uint8_t *&data)
const m2m_deprecated;
240 notification_sent_callback_2 callback) m2m_deprecated;
250 notification_delivery_status_cb callback) m2m_deprecated;
260 message_delivery_status_cb callback);
262 #ifndef DISABLE_BLOCK_MESSAGE 274 M2MResource* get_resource(FirmwareResource resource)
const;
276 static const char* resource_name(FirmwareResource resource);
278 void create_mandatory_resources();
280 bool check_value_range(FirmwareResource resource,
const int64_t value)
const;
290 friend class Test_M2MFirmware;
291 friend class Test_M2MInterfaceFactory;
295 #endif // M2MFIRMWARE_H The base class for Client Objects.
Definition: m2mobject.h:39
String resource_value_string(FirmwareResource resource) const m2m_deprecated
Returns a value of a given resource enum, in string format.
bool delete_resource(FirmwareResource resource) m2m_deprecated
Deletes a resource with a given resource enum. Mandatory resources cannot be deleted.
bool set_resource_value(FirmwareResource resource, const String &value) m2m_deprecated
Sets a value of a given resource enum.
M2MObject. This class is the base class for the mbed Client Objects.
uint16_t per_resource_count(FirmwareResource resource) const m2m_deprecated
Returns the number of resources for a given resource enum.
Definition: m2mobjectinstance.h:36
Definition: m2mfirmware.h:32
Definition: m2mstring.h:33
ResultOfUpdate
An enum defining the result of the firmware update.
Definition: m2mfirmware.h:66
uint32_t resource_value_buffer(FirmwareResource resource, uint8_t *&data) const m2m_deprecated
Populates the data buffer and returns the size of the buffer.
bool set_resource_value_update_callback(FirmwareResource resource, value_updated_callback callback)
Set resource value update callback function. This is called when resource value is updated...
Definition: m2mresourceinstance.h:32
uint16_t total_resource_count() const m2m_deprecated
Returns the number of resources for a whole firmware object.
M2MResource * create_resource(FirmwareResource resource, const String &value) m2m_deprecated
Creates a new resource for a given resource enum.
UpdateState
An enum defining the state of the firmware update.
Definition: m2mfirmware.h:56
The base class for Client Resources.
Definition: m2mresource.h:40
bool is_resource_present(FirmwareResource resource) const m2m_deprecated
Returns whether a resource instance with a given resource enum exists or not.
bool set_resource_notification_sent_callback(FirmwareResource resource, notification_sent_callback_2 callback) m2m_deprecated
Sets the callback function that is executed when this object receives response(Empty ACK) for notific...
bool set_update_execute_callback(execute_callback callback)
Set update resource execute callback function. This is called when update resource receives POST comm...
Definition: m2minterfacefactory.h:36
FirmwareResource
An enum defining all the resources associated with a Firmware Object in the LWM2M framework...
Definition: m2mfirmware.h:42
static void delete_instance() m2m_deprecated
Deletes a M2MFirmware instance.
int64_t resource_value_int(FirmwareResource resource) const m2m_deprecated
Returns a value of a given resource key name, in integer format.
bool set_package_block_message_callback(incoming_block_message_callback callback)
Set incoming_block_message_callback for the package resource. The callback will be called when a bloc...
Definition: functionpointer.h:114