A wireless communication system (100, 200) comprising: a sensor (204, 302) configured to measure a characteristic and to transmit information indicative of the measured characteristic; a mobile device (206, 304, 500) configured to: receive the information transmitted by the sensor; perform one or more tasks associated with the received information; the one or more tasks comprise aggregation and pre-processing; determine whether a first condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the condition at the mobile device is not met; and a local gateway device (208, 306, 400) configured to: receive wirelessly the information transmitted by the sensor; perform the one or more tasks associated with the received information; determine whether a second condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the second condition at the local gateway is not met; wherein the first condition depends, at least in part, on the proximity of the sensor to the mobile device, the proximity of the mobile device to the local gateway device, the energy of a given communication link and the available power of the mobile device. a sensor (204, 302) configured to measure a characteristic and to transmit information indicative of the measured characteristic; a mobile device (206, 304, 500) configured to: receive the information transmitted by the sensor; perform one or more tasks associated with the received information; the one or more tasks comprise aggregation and pre-processing; determine whether a first condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the condition at the mobile device is not met; and receive the information transmitted by the sensor; perform one or more tasks associated with the received information; the one or more tasks comprise aggregation and pre-processing; determine whether a first condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the condition at the mobile device is not met; and a local gateway device (208, 306, 400) configured to: receive wirelessly the information transmitted by the sensor; perform the one or more tasks associated with the received information; determine whether a second condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the second condition at the local gateway is not met; wherein the first condition depends, at least in part, on the proximity of the sensor to the mobile device, the proximity of the mobile device to the local gateway device, the energy of a given communication link and the available power of the mobile device. receive wirelessly the information transmitted by the sensor; perform the one or more tasks associated with the received information; determine whether a second condition is met so as to determine whether to offload the pre-processing; and offload the pre-processing based, at least in part, on a determination that the second condition at the local gateway is not met; wherein the first condition depends, at least in part, on the proximity of the sensor to the mobile device, the proximity of the mobile device to the local gateway device, the energy of a given communication link and the available power of the mobile device.