IDBLUE logo
Public Member Functions
IDBlueCommand Class Reference
Inheritance diagram for IDBlueCommand:
IDBluePacket CByteArray ByteArrayCommand ByteCommand EpcReadTagCommand EpcWriteTagCommand GetTagInfoCommand ReadBlockCommand ReadBlocksCommand SetPropertyCommand SimpleCommand StringCommand UShortCommand WriteBlockCommand WriteBlocksCommand

Public Member Functions

(BOOL) - isValidResponse:
(CommandIdentifier) - command
(id< IResponseHandler >) - handler
(void) - sethandler:
(IDBlueResponse *) - response
(void) - setResponse:
(BOOL) - notifySynchronousResponse:withPropertyGenerator:

Detailed Description

IDBlueCommand derives from the IDBluePacket interface. IDBlueCommand Represents an IDBluePacket that can be sent to an IDBLUE device.

IDBlueCommand objects should not be created from outside the IDBLUE iOS SDK. Instead, use the appropriate method on the IDBlueCommandSender object that will create the appropriate IDBlueCommand object, and notify the calling application via the ResponseHandler interface.


Member Function Documentation

- (CommandIdentifier) command

Get the command identifier of the current IDBlueCommand

Gets the ResponseHandler that is assigned to the current IDBlueCommand

- (BOOL) isValidResponse: (IDBlueResponse*)  response

Determine if the specified response is valid for the current IDBlueCommand. A valid response would be a response having the same command header, or a NACK response with the failedCommand matching the current IDBlueCommand header.

Returns:
TRUE if the response is valid for the current IDBlueCommand, FALSE otherwise

Gets the IDBlueResponse for the current IDBlueCommand

- (void) sethandler: (id<IResponseHandler>)  handler

Sets the callback method to be executed when a response to the current IDBlueCommand is received from an IDBLUE device.

Parameters:
handlerthe object implementing the ResponseHandler protocol. When a response is received to the current IDBlueCommand, the corresponding method will be invoked on the handler.
- (void) setResponse: (IDBlueResponse*)  response

Sets the IDBlueResponse for the current IDBlueCommand

Parameters:
responseThe IDBlueResponse received for the current IDBlueCommand

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

 

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