Paper accepted to IEEE IoT Journal