IDBLUE logo
Public Member Functions
IDBlueProperty Class Reference
Inheritance diagram for IDBlueProperty:
IDBlueResponse BlockDataProperty BootloaderVersionProperty ByteProperty TimestampProperty UShortProperty VersionInfoProperty BlockCountProperty BlockIndexProperty BluetoothTimeoutProperty BooleanProperty ConnectedModeProperty ContinuousScanTimeoutProperty DeviceTimeoutProperty DisconnectedModeProperty RfidProtocolProperty RfidTimeoutProperty DuplicateEliminationProperty

Public Member Functions

(id) - initWithPropertyId:
(PropertyIdentifier) - property
(SetPropertyCommand *) - buildSetRequest:
(GetPropertyCommand *) - buildGetRequest
(BOOL) - notifySynchronousGetResponse:withResponse:withHandler:
(BOOL) - notifySynchronousSetResponse:withResponse:withHandler:

Detailed Description

IDBlueProperty overrides the initFromPacket command, and sets it's property identifier from the payload of the packet passed as a parameter (property identifier is stored in the first 2 bytes of the payload).


Member Function Documentation

Creates an instance of the GetPropertyCommand that (when sent to IDBLUE) is used to set the current IDBLueProperty

- (SetPropertyCommand *) buildSetRequest: (void*)  args

Create an IDBlueCommand that will set the current property of an IDBLUE device

Parameters:
argsThe value of the property to be set
Returns:
an IDBlueCommand that will set the property corresponding to the property identifier of the current IDblueProperty.
- (id) initWithPropertyId: (PropertyIdentifier)  property

Initialize the IDBlueProeprty, setting the property identifier to the specified value.

Parameters:
propertyThe property identifier for the current IDBlueProperty
Returns:
The initialized IDBlueProperty object
- (BOOL) notifySynchronousGetResponse: (IDBlueCommand*)  command
withResponse: (IDBlueResponse*)  response
withHandler: (id<IResponseHandler>)  handler 

Notify the given handler of a response to a get property command

Parameters:
commandThe request (GetPropertyCommand) that resulted in the response
responseThe response (IDBlueProperty) containing the value of the property
handlerThe handler to be notified
Returns:
TRUE if the handler was notified, FALSE otherwise
- (BOOL) notifySynchronousSetResponse: (IDBlueCommand*)  command
withResponse: (IDBlueResponse*)  response
withHandler: (id<IResponseHandler>)  handler 

Notify the given handler of a response to a set property command

Parameters:
commandThe request (SetPropertyCommand) that resulted in the response
responseThe response to the set property command
handlerThe handler to be notified
Returns:
TRUE if the handler was notified, FALSE otherwise
- (PropertyIdentifier) property

Gets the property identifier of the current IDBlueProperty


The documentation for this class was generated from the following files:

 

Generated on Mon Jan 19 2015 15:47:40
Copyright © 2015 Cathexis Innovations Inc. All Rights Reserved.