Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/fdm_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,17 @@ typedef struct
//! \}
} Verification;



/**
* Constrained Device information.
*/
typedef struct {
//! \{
bool isDevicePresent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do the needful for doxygen here.

bool isFlowObjectInstanceRegistered;
bool isFlowAccessInstanceRegistered;
//! \}
} DeviceStatus;

#endif /* FDM_COMMON_H */
4 changes: 2 additions & 2 deletions src/fdm_get_client_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ static void ListClients(const AwaServerSession *session, json_object *respObj)
while(AwaClientIterator_Next(clientIterator))
{
const char *clientID = AwaClientIterator_GetClientID(clientIterator);

json_bool provisionStatus = IsDeviceProvisioned(session, clientID) ? 1 : 0;
const AwaServerListClientsResponse *response = AwaServerListClientsOperation_GetResponse(operation, clientID);
json_bool provisionStatus = IsFlowAccessInstanceRegistered(session, response) ? 1 : 0;
json_object *clientObj = json_object_new_object();
json_object_object_add(clientObj, "clientId", json_object_new_string(clientID));
json_object_object_add(clientObj, "is_device_provisioned", json_object_new_boolean(provisionStatus));
Expand Down
Loading