Reconfiguration of Environmental Data Compression Parameters through Cognitive IoT Technologies