ThingWorx C SDK
Macros
Thing Creation Macros

Macros

#define TW_MAKE_THING(thingName, templateName, ...)   char * _tw_thing_name=thingName;const char* _tw_thing_namespace = TW_NO_NAMESPACE;twExt_CreateThingFromTemplate(thingName,templateName,##__VA_ARGS__,VAR_ARG_END);TW_UNUSED_VARIABLE(_tw_thing_namespace);TW_UNUSED_VARIABLE(_tw_thing_name)
 Creates a Thing based on a ThingTemplate and declares variables which can be used by the TW_PROPERTY and TW_SERVICE macros. More...
 

Detailed Description

Macro Definition Documentation

#define TW_MAKE_THING (   thingName,
  templateName,
  ... 
)    char * _tw_thing_name=thingName;const char* _tw_thing_namespace = TW_NO_NAMESPACE;twExt_CreateThingFromTemplate(thingName,templateName,##__VA_ARGS__,VAR_ARG_END);TW_UNUSED_VARIABLE(_tw_thing_namespace);TW_UNUSED_VARIABLE(_tw_thing_name)

Creates a Thing based on a ThingTemplate and declares variables which can be used by the TW_PROPERTY and TW_SERVICE macros.

Parameters
thingNameconst char* [in] The name of the thing to be created
templateNameconst char* [in] The name of the ThingTemplate to be used. If not custom ThingTemplate is required use TW_THING_TEMPLATE_GENERIC.
Returns
returns no value