Hi - Can someone tell me what is the correct syntax to parse the metadata level of the json data to get say RRSI? I can get the app_id, dev_id and the payload with:
$json_data = json_decode($line,true);
$app_id = $json_data['app_id'];
$dev_id = $json_data['dev_id'];
$time = $json_data['metadata']['time'];
$rssi = $json_data['metadata']['gateways']['rssi']; // gives error
$state = $json_data['payload_fields']['ValveState'];
regards
Russel
solved : - I needed $rssi = $json_data[‘metadata’][‘gateways’][0][‘rssi’];l