Thanks for the help Michael. But again I am not really sure how to do that.
Can you refer me to some tutorial  or reading where I can see how to
actually code it.. Sorry but not really getting it.

Regards,
Mayank
On Fri, Jun 10, 2011 at 5:13 PM, Michael Schippling <[email protected]> wrote:
> Pretty much all sensors readings on TOS devices are
> integer values directly from the ADC -- some few, like
> Voltage, may be may be mangled for range and level
> but are probably also ints. IIRC the telosb has a 12
> bit converter so you should have 0-4095 as your values,
> which is a resolution of about .00025 per bit. You may
> convert that to floating point to about 4 decimal places
> if you like.
>
> MS
>
> Mayank Gupta wrote:
>>
>> Hi all,
>>
>> I am sending sensor readings from telosb mote to the pc and storing
>> the data in mysql database. The problem I am facing is that I want
>> data to be precise upto at least 2 decimal places but data in my
>> database always comes out to be as integer. I have modified the mig
>> generated file to push data into the database rather than show output
>> on the screen.  I hope someone can guide me in the right direction so
>> that I can get more precise value in my database.
>>
>> Regards,
>> Mayank
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to