ThingWorx C SDK
|
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... | |
#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.
thingName | const char* [in] The name of the thing to be created |
templateName | const char* [in] The name of the ThingTemplate to be used. If not custom ThingTemplate is required use TW_THING_TEMPLATE_GENERIC. |