The SmartCradle API is used to set and retrieve attributes of the MC18 Cradle
The LED can be flashed to identify device location without unlocking the cradle.
Parameters
The properties associated with reading card data.
During unlock the LEDs will flash, this is the on duration of that flash specified in milliseconds. Set to 0 to prevent flashing and keep the LED off. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
During unlock the LEDs will flash, this is the off duration of that flash specified in milliseconds. Set to 0 to prevent flashing. If the on duration is non-zero and this parameter is zero then the LED will remain on when unlocked. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
Enables or Disables the smoothing effect of LED blinking.
ledFlashCount is the no of count it will be flashed. This will take affect for valid values of ledOnDuration and ledOffDuration.
Synchronous Return:
Method Access:
Rho.SmartCradle.flashLed(HASH propertyMap)
Rho::SmartCradle.flashLed(HASH propertyMap)
This method will return all of object/value pairs for the propertyNames of the API class.
Parameters
Async Callback Returning Parameters: HASH
Synchronous Return:
Map of all available properties
: this method also supports async callbacks - check the Callback tab for callback return parameters.
Method Access:
Rho.SmartCradle.getAllProperties(CallBackHandler callback)
Rho::SmartCradle.getAllProperties(CallBackHandler callback)
This method will return a set of object/value pairs for the list of the propertyName that is passed in. The propertyNames must be a valid property of the API class.
Parameters
List of properties I want to know about
Async Callback Returning Parameters: HASH
Synchronous Return:
Map of properties I want to know about
: this method also supports async callbacks - check the Callback tab for callback return parameters.
Method Access:
Rho.SmartCradle.getProperties(ARRAY arrayofNames, CallBackHandler callback)
Rho::SmartCradle.getProperties(ARRAY arrayofNames, CallBackHandler callback)
This method will return the value of the propertyName that is passed in. The propertyName must be a valid property of the API class.
Parameters
The property to return info about.
Async Callback Returning Parameters: STRING
Synchronous Return:
The property to return info about.
: this method also supports async callbacks - check the Callback tab for callback return parameters.Method Access:
Rho.SmartCradle.getProperty(STRING propertyName, CallBackHandler callback)
Rho::SmartCradle.getProperty(STRING propertyName, CallBackHandler callback)
This method will set the values of a list of properties for the API class. The propertyName must be a valid property for the class and must also not be read only.
Parameters
Map of properties I want to set
Synchronous Return:
Method Access:
Rho.SmartCradle.setProperties(HASH propertyMap)
Rho::SmartCradle.setProperties(HASH propertyMap)
This method will set the value of a property for the API class. The propertyName must be a valid property for the class and must also not be read only.
Parameters
The one property name that I want to set
The one property value that I want to set
Synchronous Return:
Method Access:
Rho.SmartCradle.setProperty(STRING propertyName, STRING propertyValue)
Rho::SmartCradle.setProperty(STRING propertyName, STRING propertyValue)
Unlocks the terminal from the cradle for the specified period. For Android, the smoothing effect by default is false.
Parameters
During unlock the LEDs will flash, this is the on duration of that flash specified in milliseconds. Set to 0 to prevent flashing and keep the LED off. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
During unlock the LEDs will flash, this is the off duration of that flash specified in milliseconds. Set to 0 to prevent flashing. If the on duration is non-zero and this parameter is zero then the LED will remain on when unlocked. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
The cradle will remain unlocked for the length of time in seconds specified by this value. Specified in seconds. Range 10 to 30 inclusive.
Synchronous Return:
Method Access:
Rho.SmartCradle.unlock(INTEGER ledOnDuration, INTEGER ledOffDuration, INTEGER timeout)
Rho::SmartCradle.unlock(INTEGER ledOnDuration, INTEGER ledOffDuration, INTEGER timeout)
Unlocks the terminal from the cradle for the specified period. For Android, the smoothing effect by default is false.
Parameters
The properties associated with reading card data.
During unlock the LEDs will flash, this is the on duration of that flash specified in milliseconds. Set to 0 to prevent flashing and keep the LED off. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
During unlock the LEDs will flash, this is the off duration of that flash specified in milliseconds. Set to 0 to prevent flashing. If the on duration is non-zero and this parameter is zero then the LED will remain on when unlocked. In Android, this is in mSecs and the range is from 0 mSec(minimum) to 65535 mSec(maximum).
The cradle will remain unlocked for the length of time in seconds specified by this value. Specified in seconds. Range 10 to 30 inclusive.
Enables or Disables the smoothing effect of LED blinking.
Synchronous Return:
Method Access:
Rho.SmartCradle.unlockEx(HASH propertyMap)
Rho::SmartCradle.unlockEx(HASH propertyMap)
CAPI version of the cradle. Not Applicable for Android.
Property Access:
myObject.cApiVersion
Sets the charge state of the cradle. Values can be either ‘Fast’ or ‘Slow’.
Possible Values (STRING):
The cradle will charge devices quickly.
The cradle will charge devices slowly.
Property Access:
myObject.chargeState
The current Column ID of the cradle in the matrix. In Android, the range of columnId is 0 to 255.
Property Access:
myObject.columnId
Driver version of the cradle. Not Applicable for Android.
Property Access:
myObject.driverVersion
Firmware version of the cradle.
Property Access:
myObject.firmwareVersion
Hardware ID of the cradle
Property Access:
myObject.hardwareId
Manufacture date of the cradle in DD-MM-YY format. Not Applicable for Android.
Property Access:
myObject.mfgDate
Part number of the cradle.
Property Access:
myObject.partNumber
The current Row ID of the cradle in the matrix. In Android, the range of rowId is 0 to 255.
Property Access:
myObject.rowId
Serial number of the cradle.
Property Access:
myObject.serialNumber
The current Wall ID of the cradle in the matrix. In Android, the range of wallId is 0 to 255.
Property Access:
myObject.wallId
There is a hardware imposed limit to how quickly the cradle LEDs can be flashed for a quickly flashing LED it is recommended to set the on / off duration to 500ms.