update ErrorCode, status, lifecycle

This commit is contained in:
2026-07-06 15:55:14 +07:00
parent 323715eab0
commit 397b9ab3c5
12 changed files with 253 additions and 69 deletions

View File

@@ -5,8 +5,9 @@
int main() {
lidarlib::Driver drv(lidarlib::MODEL_VB);
if (!drv.open()) {
fprintf(stderr, "Không mở được socket\n");
lidarlib::ErrorCode err = drv.open();
if (err != lidarlib::ErrorCode::Ok) {
fprintf(stderr, "Không mở được socket: %s\n", lidarlib::to_string(err));
return 1;
}