Windows C++ Bluetooth Awareness Static Link Library + GUI
$30-5000 USD
Cancelado
Publicado hace más de 13 años
$30-5000 USD
Pagado a la entrega
Bluetooth Device Awareness
A class written in C++ in Visual Studio 2010 and compiled into a static link library (.LIB), and a GUI application that uses this library to show Bluetooth device connection status as described below.
The class when instantiated will communicate with the Windows Bluetooth API to receive asynchronous notifications of when a pair Bluetooth device connects to or disconnects from the local system, and when a Bluetooth device is paired with on unpaired with the system. It uses this information to maintain an internal table of devices, which indicates how long each device has been connected, or if disconnected, how long it has been disconnected.
See detailed description for the functions the class should have.
The GUI application should be a Windows application that statically links the library, instantiates the class, shows the LastChanged() value, plus list of Bluetooth devices (for each one, show the unique identifier string, friendly name, and status, in tabular format). It should update this display once a second. It should have a "Close" button which quits.
## Deliverables
Bluetooth Device Awareness
A class written in C++ in Visual Studio 2010 and compiled into a static link library (.LIB), and a GUI application that uses this library to show Bluetooth device connection status as described below.
The class when instantiated will communicate with the Windows Bluetooth API to receive asynchronous notifications of when a pair Bluetooth device connects to or disconnects from the local system, and when a Bluetooth device is paired with on unpaired with the system. It uses this information to maintain an internal table of devices, which indicates how long each device has been connected, or if disconnected, how long it has been disconnected.
This class should have the following functions for access from a program that uses it:
List() - Returns a one-dimensional array of strings representing every Bluetooth device registered to the computer. The string can be any uniquely identifying string, which the caller can use to get additional information.
LastChanged() - Returns a timestamp string indicating when the table was last changed. This allows the program using the library to efficiently poll it for changes without having to implement more complex callback functionality.
GetAttribute( string identifier, attribute name) - Returns a string representing the attribute value for the given identifier and attribute name. Valid attribute names:
"FriendlyName" -- the name by which the device is shown by Windows to the user which may or may not be unique.
"Status" - a string indicating the current status of the paired device within the internal table, and can be one of:
"Paired" - to indicate that the device has been configured to communicate with the system, but has not connected since the class was instantiated.
"Unpaired xxxx seconds" - to indicate that the device has been removed from the list of Bluetooth devices paired to the system since the class was instantiated. Indicates how many seconds since the device got removed from the system's list of paired Bluetooth devices.
"Connected xxxx seconds" - to indicate the device has an active Bluetooth connection to the system now, and for how long it has been connected.
"Disconnected xxxx seconds" to indicate the device was connected, but has lost connection, with how long it has been disconnected.
The GUI application should be a Windows application that statically links the library, instantiates the class, shows the LastChanged() value, plus list of Bluetooth devices (for each one, show the unique identifier string, friendly name, and status, in tabular format). It should update this display once a second. It should have a "Close" button which quits.