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"); \
18#define IOT_SAMPLE_LOG_ERROR(...) \ …
28#define IOT_SAMPLE_LOG_SUCCESS(...) \
31 (void)printf("SUCCESS:\t"); \
32 (void)printf(__VA_ARGS__); \
28#define IOT_SAMPLE_LOG_SUCCESS(...) \ …
36#define IOT_SAMPLE_LOG(...) \
39 (void)printf("\t\t"); \
40 (void)printf(__VA_ARGS__); \
36#define IOT_SAMPLE_LOG(...) \ …
60 size_t endpoint_size);
iot_sample_type
Definition iot_sample_common.h:44
@ 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 *endpoint, size_t endpoint_size)
Definition iot_sample_common.c:31