Go to the documentation of this file.
4 #ifndef IOT_SAMPLE_COMMON_H
5 #define IOT_SAMPLE_COMMON_H
13 #include <azure/az_core.h>
18 #define IOT_SAMPLE_LOG_ERROR(...) \
21 (void)fprintf(stderr, "ERROR:\t\t%s:%s():%d: ", __FILE__, __func__, __LINE__); \
22 (void)fprintf(stderr, __VA_ARGS__); \
23 (void)fprintf(stderr, "\n"); \
28 #define IOT_SAMPLE_LOG_SUCCESS(...) \
31 (void)printf("SUCCESS:\t"); \
32 (void)printf(__VA_ARGS__); \
36 #define IOT_SAMPLE_LOG(...) \
39 (void)printf("\t\t"); \
40 (void)printf(__VA_ARGS__); \
60 size_t endpoint_size);
62 #endif // IOT_SAMPLE_COMMON_H
@ PAHO_IOT_HUB
Definition: iot_sample_common.h:45
@ PAHO_IOT_PROVISIONING
Definition: iot_sample_common.h:46
void iot_sample_create_mqtt_endpoint(iot_sample_type type, char *out_endpoint, size_t endpoint_size)
Definition: iot_sample_common.c:31
#define IOT_SAMPLE_LOG_SUCCESS(...)
Definition: iot_sample_common.h:28
void iot_sample_create_mqtt_endpoint(iot_sample_type type, char *endpoint, size_t endpoint_size)
Definition: iot_sample_common.c:31
iot_sample_type
Definition: iot_sample_common.h:44
#define IOT_SAMPLE_LOG_ERROR(...)
Definition: iot_sample_common.h:18