Help needed in programming

I want to compute a variable using analog read function, and want to update it every second, with cumulative sum of the previous readings of sensor taken at 1 second interval. So that the variable contains the sum of all previous readings of sensor.
However, it is ok to upload the variable value to cloud at every 5 minutes, which is minimum data upload rate of bolt at cloud.
How can i do that without using virtual web server, and by using bolt module only ?

Hi,

With the current features of the Bolt IoT platform such a thing is not possible.