Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
10-26-2012 01:04 PM
When I build the following:
a build error is reported
called object sensor_info_get_range_maximum is not a function
As far as I can tell it is defined the same as the sensor_info_get_range_minimum in sensor.h
the sensor_info_get_range_minimum works fine (well, it returns a value with no build error. I can't actually verify if the reported value means anything...).
Am I missing something or id this a bug?
Solved! Go to Solution.
10-27-2012 08:30 AM
I'm not sure why you're having a problem.
I used the following code:
unsigned int informationi;
sensor_info_t *info = NULL;
information = sensor_info_get_range_maximum(info);
printf("Max_Range = %f\n", information);
information = sensor_info_get_resolution(info);
printf("Resolution = %f\n", information);
information = sensor_info_get_range_minimum(info);
printf("Min_Range = %f\n", information);
informationi = sensor_info_get_delay_mininum(info);
printf("Min_Delay = %d\n", informationi);
informationi = sensor_info_get_delay_maximum(info);
printf("Max_Delay = %d\n", informationi);
informationi = sensor_info_get_delay_default(info);
printf("Default_Delay = %d\n", informationi);
information = sensor_info_get_power(info);
printf("Power = %f\n", information);
and got the following results:
Max_Range = 1000.000000
Resolution = 0.000000
Min_Range = -1000.000000
Min_Delay = 10000
Max_Delay = 256000
Default_Delay = 20000
Power = -1.000000
The only problem I've encountered was the spelling of sensor_info_get_delay_mininum.
It would throw an error when I spelled minimum correctly. I had to go to the header file to note the incorrect spelling and use it in my code.
BTW I'm using version 2.0.0 of the IDE.
10-27-2012 11:15 AM
I am running IDE 2.1.0 Build id: 201206041807
in sensor.h the declarations are:
BPS_API float sensor_info_get_range_minimum(sensor_info_t *info);
BPS_API float sensor_info_get_range_maximum(sensor_info_t *info);
I even cut/paste the name directly from sensor.h into my code and I still get the build error.
11-01-2012 11:15 AM
mmd12, we would never do that We will deprecate the function containing the typo and introduce a new function without the typo. No code changes will be requied on your end.