I need to be able to access the version info in the device_info.json file.
This is loaded into the struct iot_device_info defined in iot_main.h
I am not able to include iot_main.h or I get an error. This seems to be related to c++ extern ‘C’ work to allow mixing my C++ code and C for the STSDK.
Maybe a feature exists to access this via an API call but I have not found one so far.
My project is here.
https://github.com/nutechsoftware/AlarmDecoder-STSDK