'Get latest status.'

def _get_variable(self, var):

    url = '{}/v1/devices/{}/{}?access_token={}'.format(self.particle_url, self.device_id, var, self.access_token)
    ret = requests.get(url, timeout=10)
    result = {}
    for pairs in ret.json()['result'].split('|'):
        key = pairs.split('=')
        result[key[0]] = key[1]
    return result
