Changes in OS 4.2
Jump to navigation
Jump to search
Changes
The apilevel is now 2.7.
New
ASI features got added in this release.
- asi.addStateListener(asiStateCallback [, object])
- asi.removeStateListener(asiStateCallback)
- asi.isScanning()
- asi.startScanning(portFoundCallback [, object])
- asi.stopScanning()
Also available: the Port class
- port:getName()
- port:getIdentifier()
- port:getState()
- port:setBaudRate(newBaudRate)
- port:connect(connectionCallback[, object])
- port:disconnect()
- port:setWriteListener(writeCallback[, object])
- port:write(writeData)
- port:setReadListener(readCallback[, object])
- port:setReadTimeout(newTimeout)
- port:read([bytesToRead])
- port:getValue()