SPINE2: developing BSN applications on heterogeneous sensor nodes