Central communication class to the BlueSense network.
function onListDeviceCount(count:Number)This event shows the number of found devices in response to a requestDeviceTable call.
count | represents the number of found devices |
function onListDevice(deviceId:Number, type:Number, typeName:String, version:Number)This event will be called once for each found device in response to a requestDeviceTable call.
deviceId | represents the unique identifier of the found device |
type | represents the hardware type of the device in decimal notation |
typeName | gives the textual representation of the hardware type |
version | contains the firmware version of the device |
function start(intervalMs:Number)Use this method to tell the gateway how often to exchange data between the BlueSense network and Flash.
intervalMs | sets the interval in milli seconds, the lower this value the more responsive the network. |
function stop()This method stops the exchange of data, it will probably be to no use to anyone.
function requestDeviceTable()To request a list of currently connected devices call this method. A moment later the device count and a list of devices will be returned using the onListDevice event.
function clearDeviceTable()Before you request a device table you might want to clear it using this method. This allowes you to get a clean list without previously, but not anymore, connected devices.