Utility class to automate the Glasses exclusive connection process. More...
#include <TiltFiveNative.hpp>
Public Member Functions | |
auto | glasses () -> Glasses & |
Obtain a reference to the wrapped tiltfive::Glasses object. More... | |
auto | awaitConnection () -> Result< void > |
Block until a connection is established. More... | |
auto | awaitConnection (const std::chrono::milliseconds timeout) -> Result< void > |
Block until a connection is established or timed out. More... | |
auto | consumeLastAsyncError () -> std::error_code |
Obtain and consume the last asynchronous error. More... | |
Utility class to automate the Glasses exclusive connection process.
See Using GlassesConnectionHelper for usage.
Definition at line 779 of file TiltFiveNative.hpp.
|
inline |
Block until a connection is established.
Definition at line 865 of file TiltFiveNative.hpp.
|
inline |
Block until a connection is established or timed out.
[in] | timeout | - Time to wait for connection before timeout |
Definition at line 886 of file TiltFiveNative.hpp.
|
inline |
Obtain and consume the last asynchronous error.
The connection process may produce errors asynchronously which can be detected by calling this.
Definition at line 916 of file TiltFiveNative.hpp.
|
inline |
Obtain a reference to the wrapped tiltfive::Glasses object.
Definition at line 860 of file TiltFiveNative.hpp.