initialTwin_create()

Creates an Initial Twin handle for use in consequent APIs.

Syntax

#include "azure-iot-sdk-c/provisioning_service_client/inc/prov_service_client/provisioning_sc_twin.h"

INITIAL_TWIN_HANDLE initialTwin_create(
  const char *  tags,
  const char *  desired_properties
);

Parameters

  • tags The json string for the tags of the initial Twin State

  • desired_properties The json string for the desired properties of the initial Twin State

Return Value

A non-NULL handle representing an Initial Twin for use with Provisioning Service, and NULL on failure.