This is the sample program that can see the decode result of barcode data on Watson IoT.

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Embed: (wiki syntax)

« Back to documentation index

DeviceManager Class Reference

DeviceManager Class Reference

DeviceManager is the endpoint management class. More...

#include <DeviceManager.h>

Public Member Functions

 DeviceManager (const Logger *logger, const void *dm_responder=NULL, const char *mfg="ARM", const char *dev_type="mbed", const char *model="ARM", const char *serial="000000", const char *fw_ver="0.0.0", const char *hw_ver="0.0.0", const char *sw_ver="0.0.0")
 Default constructor.
 DeviceManager (const DeviceManager &manager)
 Copy constructor.
virtual ~DeviceManager ()
 Destructor.
void install (const void *endpoint, const void *config)
 install the device manager into the endpoint
void * getResponder ()
 get the DeviceManagementResponder

Detailed Description

DeviceManager is the endpoint management class.

Definition at line 48 of file DeviceManager.h.


Constructor & Destructor Documentation

DeviceManager ( const Logger logger,
const void *  dm_responder = NULL,
const char *  mfg = "ARM",
const char *  dev_type = "mbed",
const char *  model = "ARM",
const char *  serial = "000000",
const char *  fw_ver = "0.0.0",
const char *  hw_ver = "0.0.0",
const char *  sw_ver = "0.0.0" 
)

Default constructor.

Parameters:
loggerinput logger instance
dm_responderinput data management responder/processor
mfginput endpoint manufacturer
dev_typeinput the endpoint type
modelinput the model of the endpoint
serialinput the serial of the endpoint
fw_versinput the current firmware version
hw_versinput the current hardware version
sw_versinput the current software version

Definition at line 39 of file DeviceManager.cpp.

DeviceManager ( const DeviceManager manager )

Copy constructor.

Parameters:
resourceinput the DeviceManager that is to be deep copied

Definition at line 71 of file DeviceManager.cpp.

~DeviceManager (  ) [virtual]

Destructor.

Definition at line 98 of file DeviceManager.cpp.


Member Function Documentation

void * getResponder (  )

get the DeviceManagementResponder

Returns:
the DeviceManagementResponder or NULL

Definition at line 400 of file DeviceManager.cpp.

void install ( const void *  endpoint,
const void *  config 
)

install the device manager into the endpoint

Parameters:
endpointinput the endpoint instance
configinput the endpoint configuration instance

Definition at line 379 of file DeviceManager.cpp.