How can we access the product version in our software? I have a project that was originally based on the B404 which I’ve switch to the M Series. I used to use __system_product_version but it seems that isn’t an option on the MSOM. Any alternative for it that isn’t keeping my own local variable with the product version?
The __system_product_version doesn't return the correct result if using Asset OTA on the B-SoM as well.
The best option for now is to use this code, which works on all current devices:
product_details_t info;
info.size = sizeof(info);
spark_protocol_get_product_details(spark_protocol_instance(), &info);
LOG(INFO, "product id: %lu, version: %lu", (unsigned)info.product_id, (unsigned)info.product_version);
Thanks, I will give it a shot.