Read attenuation upper limit in get_data() in case mbed has been
restarted,
rename ATT_MAX to attenuationMax.