mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-15 06:03:02 -05:00
add get maixpy version api
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user