reveal enhanced device version in info cmd and add to update check, unify wait

This commit is contained in:
John
2022-12-17 17:20:19 +01:00
parent cd6be6002d
commit f3d030c137
3 changed files with 64 additions and 16 deletions
+18 -1
View File
@@ -212,12 +212,26 @@ class Device {
void setListener(DeviceListener* listener) { m_listener = listener; }
/**
* Send a request for extra infos to enhanced device.
* Check for a running extra infos request, wait for it to complete,
* and then send a new request for extra infos to enhanced device.
* @param infoId the ID of the info to request.
* @return @a RESULT_OK on success, or an error code otherwise.
*/
result_t requestEnhancedInfo(symbol_t infoId);
/**
* Send a request for extra infos to enhanced device.
* @param infoId the ID of the info to request.
* @return @a RESULT_OK on success, or an error code otherwise.
*/
result_t sendEnhancedInfoRequest(symbol_t infoId);
/**
* Get the enhanced device version.
* @return @a a string with the version infos, or empty.
*/
string getEnhancedVersion() const { return m_enhInfoVersion; }
/**
* Retrieve/update all extra infos from an enhanced device.
* @return @a a string with the extra infos, or empty.
@@ -324,6 +338,9 @@ class Device {
/** the info buffer. */
symbol_t m_infoBuf[16];
/** a string describing the enhanced device version. */
string m_enhInfoVersion;
/** a string describing the enhanced device temperature. */
string m_enhInfoTemperature;