Header: utils/inc/suidLookUp.h
Structures
suidLookUp
Utility class for discovering available sensors using dataytpe.
Functions
suidLookUp
creates a new connection to qsh for suid lookup
Parameters
callback function for suids
~suidLookUp
requestSuid
look up the suid for a given datatype, registered callback will be called when suid is available for this datatype
Parameters
data type for which suid is requested
option to ask for publishing only default suid for the given data type. default value is false
locate
Utility class for synchronous sensor UID lookup operations.
Functions
locate
Default constructor for the locate class.
Initializes a new instance of the locate class for performing SUID lookup operations. The instance is prepared for a single lookup operation.
lookUp
Performs synchronous lookup of sensor UIDs for a given datatype.
This method initiates a SUID lookup request for the specified datatype and blocks until either the lookup completes or the timeout expires. It returns a reference to a vector containing all discovered sensor UIDs for the datatype.
Parameters
The sensor datatype to lookup (e.g., âaccelâ, âgyroâ, âmagâ)
The sensor hub ID to query. Use -1 for default hub (default: -1)
Maximum time to wait for lookup completion (default: 5000ms)
Returns
Shared pointer to vector of sensor UIDs found for the specified datatype. Returns empty vector if no sensors found or timeout occurred.
Type Definitions
suid
suidEventCb
type alias for an suid event function