add get maixpy version api

This commit is contained in:
Neucrack
2024-08-14 15:45:53 +08:00
parent 8b79b0b815
commit 7d2f1c292f
2 changed files with 59 additions and 1 deletions

View File

@@ -15,11 +15,18 @@ namespace maix::sys
{
/**
* Get system version
* @return version string, e.g. "2024.4.1-13af4b"
* @return version string, e.g. "maixcam-2024-08-13-maixpy-v4.4.20"
* @maixpy maix.sys.os_version
*/
std::string os_version();
/**
* Get MaixPy version, if get failed will return empty string.
* @return version string, e.g. "4.4.21"
* @maixpy maix.sys.maixpy_version
*/
std::string maixpy_version();
/**
* Get device name
* @return device name, e.g. "MaixCAM"