diff --git a/inc/lib/CAPI.class.php b/inc/lib/CAPI.class.php index 071d451..9099af4 100644 --- a/inc/lib/CAPI.class.php +++ b/inc/lib/CAPI.class.php @@ -13,6 +13,9 @@ class CAPI { unset($USER['password']); $result = $USER; $result['devices'] = getUserDevices($USER['id']); + foreach($result['devices'] as $key => $value) { + $result['devices'][$key]['config'] = CIoT::getBoardConfig($value['id']); + } return $result; } } \ No newline at end of file