DataManagement Class Reference

Inherits from DefaultConfiguration : NSObject
Declared in DataManagement.h

– submitDataOn:AndValue:AndLatitide:AndLongitude:AndHeight:AndAttributes:

Submit data for specific device and it’s component. Device and component have to be registered in the cloud before sending observations. The device id that is used will be the current device that is cached usually after a create new device.

- (CloudResponse *)submitDataOn:(NSString *)componentName AndValue:(NSString *)componentValue AndLatitide:(double)latitude AndLongitude:(double)longitude AndHeight:(double)height AndAttributes:(NSDictionary *)attributes

Parameters

componentName

the name of the component to look up the component id.

componentValue

the value to set for the component.

latitude

lat location for the device in decimal

longitude

lon location for the device in decimal

height

altitude value in meters

Return Value

For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part HttpResponseDelegatee of DefaultConfiguration. For synch model, return CloudResponse which wraps HTTP return code and response.

Declared In

DataManagement.h

– retrieveDataOn:

Retrieve data for an account.

- (CloudResponse *)retrieveDataOn:(ConfigureRetrieveData *)objRetrieveData

Parameters

objRetrieveData

time series data criteria for retrieve data from the cloud

Return Value

For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part {@link RequestStatusHandler#readResponse}. For synch model, return CloudResponse which wraps HTTP return code and response.

Declared In

DataManagement.h