Public Member Functions | |
| Master () | |
| Master (int id) | |
| void | close () |
| void | start (uint intervalMs) |
| void | stop () |
| byte | getMessageCount () |
| string | getLastMessage (byte i) |
| void | clearMessages () |
| void | addIPAddress (String ip, String usrName, String password) |
| void | requestDeviceTable () |
| void | yield () |
| void | aSyncYield (uint intervalUs) |
| void | autoYield (uint duration, uint interval) |
| void | clearDeviceTable () |
| Device | getFirstDevice () |
| Device | getNextDevice (Device dev) |
| int | getListedDeviceCount () |
| Device | getDeviceById (int id) |
| Device | detectDevice (ushort id, uint timeOut) |
| int | detectDevices (ushort count, uint timeOut) |
| long | getTimeUs () |
|
|
Constructs a Master with id 0 (default). |
|
|
Constructs a Master a given id.
|
|
||||||||||||||||
|
Connects with a BlueSense internet master ip the ip address usrNae the username password the password |
|
|
Takes care of data transmission/reception from the BlueSense network. This method ensures that even if you call aSyncYield more often then every intervalUs, yield is actually still called at the specified interval. Call this method manually or use the communication process.
|
|
||||||||||||
|
Calls yield every interval us for a total of duration us.
|
|
|
Clears the device table. Can be usefull if you unplugged some devices as they are not automatically removed from the table. |
|
|
Clears last occurred errors |
|
|
Closes the master. If the communication was started it will be stopped as well. |
|
||||||||||||
|
Try to detect a device with a given identifier.
|
|
||||||||||||
|
Detects a number of devices
|
|
|
Returns the device with the given id. If the device is not found or if it's not registered with the master an UnknownDevice will be returned
|
|
|
Gets the first found device from the table. Can be used in conjunction with
|
|
|
Returns a message
|
|
|
Return the total number of found devices in the table.
|
|
|
Get the number of last occurred messages
|
|
|
Gets the next device from the table. Can be used in conjunction with
|
|
|
|
|
|
Checks if there are new devices. |
|
|
Starts communication process.
|
|
|
Stops communication process. |
|
|
Takes care of data transmission/reception from the BlueSense network. Call this method manually or use the communication process.
|
1.4.4