views:

9

answers:

0

Hello.

Im developing an application but i get kind of stuck when i face this problem. The app is going to "emulate" some external sensors, so i need to generate random numbers for each sensor like they were sending this info for real.

I wanted to save this data into a database, but i also want to consume this data (showing the last number generated, showing the maximum and minimum value and few more..). The problem is, that i need to do this at the same time :S

I have no idea how to approach this problem (or even if its possible), i just need to feed the database at the same time im querying those data and showing them in the screen :P

Any help is welcome :D