Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain camera temperature? #124

Closed
Allius27 opened this issue Sep 17, 2024 · 1 comment
Closed

How to obtain camera temperature? #124

Allius27 opened this issue Sep 17, 2024 · 1 comment

Comments

@Allius27
Copy link

Allius27 commented Sep 17, 2024

Hi there!

You have struct, which contains information about cpu temperature, but there are no even a single line of code with using that struct
https://github.com/orbbec/OrbbecSDK/blob/v1.10.12/include/libobsensor/h/ObTypes.h#L648

Except that I found the callback, but it sent information only in emergency
https://github.com/orbbec/OrbbecSDK/blob/v1.10.12/include/libobsensor/hpp/Device.hpp#L354

How I am able to fetch temperature information from the SDK?

@zhonghong322
Copy link
Contributor

OBDeviceTemperature deviceTemperature;
memset(&deviceTemperature, 0, sizeof(OBDeviceTemperature));
uint32_t dataSize = 0;

dev->getStructuredData(OB_STRUCT_DEVICE_TEMPERATURE, &deviceTemperature, &dataSize);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants