SunSPOT API V6.0


Deprecated API


Contents
Deprecated Interfaces
com.sun.spot.sensorboard.peripheral.IAccelerometer3D
          Use IAccelerometer3D instead 
com.sun.spot.sensorboard.peripheral.IAccelerometer3DScaleChangedListener
          Please use IMeasurementRangeListener instead. 
com.sun.spot.sensorboard.peripheral.IAccelerometer3DThresholdListener
          Please use ILIS3L02AQAccelerometerThresholdListener instead 
com.sun.spot.util.IBootloaderListenerCallback
          Please use the new IBootloaderListener & BootloaderListenerService instead. 
com.sun.spot.peripheral.IDriverLookup
          never used 
com.sun.spot.sensorboard.io.IInputPin
          Use IInputPin instead 
com.sun.spot.sensorboard.io.IInputPinListener
          Use IInputPinListener instead 
com.sun.spot.sensorboard.io.IIOPin
          Use IIOPin instead 
com.sun.spot.peripheral.ILed
          Use ILed instead 
com.sun.spot.sensorboard.peripheral.ILightSensor
          Use ILightSensor instead 
com.sun.spot.sensorboard.peripheral.ILightSensorThresholdListener
          Please use IADT7411ThresholdListener instead 
com.sun.spot.sensorboard.peripheral.ILIS3L02AQAccelerometerListener
          Please use IMeasurementRangeListener instead. 
com.sun.spot.sensorboard.io.IOutputPin
          Use IOutputPin instead 
com.sun.spot.peripheral.radio.proxy.IRadioServerContext
          No longer needed: all Isolates now use a global radio resource. 
com.sun.spot.resourcesharing.IResource
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.IResourceHandle
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.IResourceRegistry
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.sensorboard.io.IScalarInput
          Use IAnalogInput instead 
com.sun.spot.sensorboard.io.IScalarInputThresholdListener
          Please use com.sun.spot.sensorboard.peripheral.IADT7411ThresholdListener instead 
com.sun.spot.sensorboard.peripheral.IServo
          Use IServo instead 
com.sun.spot.sensorboard.peripheral.ISwitch
          Use ISwitch instead 
com.sun.spot.sensorboard.peripheral.ISwitchListener
          Use ISwitchListener instead 
com.sun.spot.sensorboard.peripheral.ITemperatureInput
          Use ITemperatureInput instead 
com.sun.spot.sensorboard.peripheral.ITemperatureInputThresholdListener
          Please use IADT7411TemperatureInputThresholdListener instead 
com.sun.spot.sensorboard.peripheral.IToneGenerator
          Use IToneGenerator instead 
com.sun.spot.sensorboard.peripheral.ITriColorLED
          Use ITriColorLED instead 
com.sun.spot.io.j2me.radio.RadioConnection
          Please use RadiostreamConnection 
 

Deprecated Classes
com.sun.spot.util.BootloaderListener
          Please use the new BootloaderListenerService directly. 
com.sun.spot.sensorboard.peripheral.LEDColor
          Use LEDColor instead 
com.sun.squawk.io.j2me.radio.Protocol
            
com.sun.spot.peripheral.radio.proxy.ProxyRadiogramProtocolManager
          No longer needed: all Isolates now use a global radio resource. 
com.sun.spot.peripheral.radio.proxy.ProxyRadioProtocolManager
          No longer needed: all Isolates now use a global radio resource. 
com.sun.spot.peripheral.radio.proxy.ProxyRadiostreamProtocolManager
          No longer needed: all Isolates now use a global radio resource. 
com.sun.spot.resourcesharing.ResourceRegistryChild
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.ResourceRegistryMaster
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.ResourceSharingScheme
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.service.ServiceRegistry
          use the Resources class instead 
com.sun.spot.resourcesharing.SimpleResource
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.SimpleResourceHandle
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.peripheral.radio.proxy.WaitForAllAcksCommand
          No longer needed: all Isolates now use a global radio resource. 
 

Deprecated Exceptions
com.sun.spot.sensorboard.io.IOPinException
          an IllegalArgumentException is now used instead 
com.sun.spot.resourcesharing.ResourceSharingException
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
com.sun.spot.resourcesharing.ResourceUnavailableException
          As of v6.0 (Yellow), replaced by com.sun.spot.resources 
 

Deprecated Fields
com.sun.spot.sensorboard.peripheral.ToneGenerator.PERIOD_CONSTANT
            
 

Deprecated Methods
com.sun.spot.sensorboard.peripheral.Accelerometer3D.addIAccelerometer3DThresholdListener(IAccelerometer3DThresholdListener)
          Please use LIS3L02AQAccelerometer.addILIS3L02AQAccelerometerThresholdListener instead 
com.sun.spot.sensorboard.peripheral.ToneGenerator.beep()
          Please use startTone(double hz, int dur) instead 
com.sun.spot.resources.transducers.IToneGenerator.beep()
          Please use startTone(double hz, int dur) instead 
com.sun.spot.sensorboard.peripheral.TemperatureInput.convert(double, boolean)
          use convertF2C() & convertC2F instead 
com.sun.spot.peripheral.radio.ILowPan.deregisterDataEventListener(IDataEventListener)
          use removeDataEventListener() 
com.sun.spot.peripheral.radio.mhrp.lqrp.LQRPManager.deregisterEventListener(IMHEventListener)
          replaced by removeEventListener 
com.sun.spot.peripheral.radio.routing.interfaces.IRoutingManager.deregisterEventListener(IMHEventListener)
          use removeEventListener() 
com.sun.spot.peripheral.radio.mhrp.lqrp.LQRPManager.deregisterLQRPListener(ILQRPEventListener)
          replaced by removeLQRPListener 
com.sun.spot.peripheral.radio.IRadioPacketDispatcher.deregisterPacketQualityListener(IPacketQualityListener)
          use removePacketQualityListener() 
com.sun.spot.peripheral.radio.ILowPan.deregisterRouteEventListener(IRouteEventListener)
          use removeRouteEventListener() 
com.sun.spot.sensorboard.peripheral.ToneGenerator.endTone()
          Please use stopTone() instead 
com.sun.spot.resources.transducers.IToneGenerator.endTone()
          Please use stopTone() instead 
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getCurrentScale()
          please use IMeasurementRange getCurrentRange() instead. 
com.sun.spot.util.Utils.getDataWithCRC(DataInputStream)
            
com.sun.spot.sensorboard.peripheral.ToneGenerator.getFrequency()
            
com.sun.spot.resources.transducers.IToneGenerator.getFrequency()
            
com.sun.spot.sensorboard.EDemoBoard.getPulse(IInputPin, boolean, int)
          please pass in a com.sun.spot.resources.transducers.IInputPin instead 
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.getRelativeAccel()
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.getRelativeAccel()
            
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.getRelativeAccel(int)
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.getRelativeAccel(int)
            
com.sun.spot.sensorboard.peripheral.MMA7455LAccelerometer.getRelativeAccelX()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getRelativeAccelX()
            
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.getRelativeAccelX()
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.getRelativeAccelX()
            
com.sun.spot.sensorboard.peripheral.MMA7455LAccelerometer.getRelativeAccelY()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getRelativeAccelY()
            
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.getRelativeAccelY()
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.getRelativeAccelY()
            
com.sun.spot.sensorboard.peripheral.MMA7455LAccelerometer.getRelativeAccelZ()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getRelativeAccelZ()
            
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.getRelativeAccelZ()
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.getRelativeAccelZ()
            
com.sun.spot.peripheral.ISpot.getResourceRegistry()
          use Resources instead 
com.sun.spot.peripheral.radio.RadioFactory.getResourceRegistry()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getRestOffsets()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.getScales()
          please use IMeasurementRange getMaxValue(int) instead. 
com.sun.spot.util.Utils.putDataWithCRC(DataOutputStream, byte[], int, int)
            
com.sun.spot.peripheral.radio.ILowPan.registerDataEventListener(IDataEventListener)
          use addDataEventListener() 
com.sun.spot.peripheral.radio.mhrp.lqrp.LQRPManager.registerEventListener(IMHEventListener)
          replaced by addEventListener 
com.sun.spot.peripheral.radio.routing.interfaces.IRoutingManager.registerEventListener(IMHEventListener)
          use addEventListener() 
com.sun.spot.peripheral.radio.mhrp.lqrp.LQRPManager.registerLQRPListener(ILQRPEventListener)
          replaced by addLQRPListener 
com.sun.spot.peripheral.radio.ILowPan.registerMHEventListener(IMHEventListener)
          use addMHEventListener() 
com.sun.spot.peripheral.radio.IRadioPacketDispatcher.registerPacketQualityListener(IPacketQualityListener)
          use addPacketQualityListener() 
com.sun.spot.peripheral.radio.ILowPan.registerRouteEventListener(IRouteEventListener)
          use addRouteEventListener() 
com.sun.squawk.Isolate.run()
          This is called by the system (in Isolate.start()}, and shouldn't be called directly 
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.scaleChanged(int)
          should never have been called by user code 
com.sun.spot.sensorboard.peripheral.ILIS3L02AQAccelerometerListener.scaleChanged(LIS3L02AQAccelerometer, int)
          Please use IMeasurementRangeListener instead. 
com.sun.spot.peripheral.ota.IOTACommandHelper.sendDataWithCRC(byte[], int, int)
          use IOTACommandHelper.sendData(byte[], int, int) instead 
com.sun.spot.peripheral.IFiqInterruptDaemon.setAlarmHandler(IEventHandler)
          Please use addAlarmHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setAlarmHandler(IEventHandler)
          Please use addAlarmHandler() instead. 
com.sun.spot.peripheral.IFiqInterruptDaemon.setButtonHandler(IEventHandler)
          Please use addButtonHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setButtonHandler(IEventHandler)
          Please use addButtonHandler() instead. 
com.sun.spot.sensorboard.peripheral.ToneGenerator.setDuration(int)
          Please use startTone(double hz, int dur) instead 
com.sun.spot.resources.transducers.IToneGenerator.setDuration(int)
          Please use startTone(double hz, int dur) instead 
com.sun.spot.peripheral.IFiqInterruptDaemon.setExternalPowerHandler(IEventHandler)
          Please use addExternalPowerHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setExternalPowerHandler(IEventHandler)
          Please use addExternalPowerHandler() instead. 
com.sun.spot.sensorboard.peripheral.ToneGenerator.setFrequency(double)
          please specify the desired frequency in the call to startTone() 
com.sun.spot.resources.transducers.IToneGenerator.setFrequency(double)
          please specify the desired frequency in the call to startTone() 
com.sun.spot.peripheral.IFiqInterruptDaemon.setLowBatteryHandler(IEventHandler)
          Please use addLowBatteryHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setLowBatteryHandler(IEventHandler)
          Please use addLowBatteryHandler() instead. 
com.sun.spot.sensorboard.peripheral.ToneGenerator.setPeriod(int)
          please specify the desired frequency in the call to startTone() 
com.sun.spot.peripheral.IFiqInterruptDaemon.setPowerOffHandler(IEventHandler)
          Please use addPowerOffHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setPowerOffHandler(IEventHandler)
          Please use addPowerOffHandler() instead. 
com.sun.spot.sensorboard.EDemoBoard.setPWM(IOutputPin, int)
          please use setPDM() instead 
com.sun.spot.sensorboard.peripheral.MMA7455LAccelerometer.setRestOffsets()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.setRestOffsets()
            
com.sun.spot.sensorboard.peripheral.IAccelerometer3D.setRestOffsets()
            
com.sun.spot.sensorboard.peripheral.Accelerometer3D.setRestOffsets()
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.setRestOffsets(double[][])
            
com.sun.spot.sensorboard.peripheral.LIS3L02AQAccelerometer.setScale(int)
          please use IMeasurementRange setCurrentRange() instead. 
com.sun.spot.peripheral.IFiqInterruptDaemon.setSensorBoardHandler(IEventHandler)
          Please use addSensorBoardHandler() instead. 
com.sun.spot.peripheral.FiqInterruptDaemon.setSensorBoardHandler(IEventHandler)
          Please use addSensorBoardHandler() instead. 
com.sun.spot.sensorboard.EDemoBoard.startPulse(IOutputPin, boolean, int)
          please pass in a com.sun.spot.resources.transducers.IOutputPin instead 
com.sun.spot.sensorboard.peripheral.ToneGenerator.startTone()
          Please use startTone(double hz) instead 
com.sun.spot.resources.transducers.IToneGenerator.startTone()
          Please use startTone(double hz) instead 
 

Deprecated Constructors
com.sun.spot.sensorboard.peripheral.Servo(IOutputPin)
            
 


SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.