flux sdk  v01.02.02-3-g292b3a7
Embedded C++ SDK
Loading...
Searching...
No Matches
flxIoTAzure.cpp File Reference
#include "flxIoTAzure.h"
#include <az_result.h>
#include <mbedtls/base64.h>
#include <mbedtls/md.h>
#include <mbedtls/sha256.h>

Macros

#define INDEFINITE_TIME   ((time_t) - 1)
 
#define az_span_is_content_equal(x, AZ_SPAN_EMPTY)    (az_span_size(x) == az_span_size(AZ_SPAN_EMPTY) && az_span_ptr(x) == az_span_ptr(AZ_SPAN_EMPTY))
 

Functions

int64_t iot_sample_get_epoch_expiration_time_from_minutes (uint32_t minutes)
 
az_span generate_sas_token (az_iot_hub_client *hub_client, az_span device_key, az_span sas_signature, unsigned int expiryTimeInMinutes, az_span sas_token)
 

Macro Definition Documentation

◆ az_span_is_content_equal

#define az_span_is_content_equal (   x,
  AZ_SPAN_EMPTY 
)     (az_span_size(x) == az_span_size(AZ_SPAN_EMPTY) && az_span_ptr(x) == az_span_ptr(AZ_SPAN_EMPTY))

◆ INDEFINITE_TIME

#define INDEFINITE_TIME   ((time_t) - 1)

Function Documentation

◆ generate_sas_token()

az_span generate_sas_token ( az_iot_hub_client *  hub_client,
az_span  device_key,
az_span  sas_signature,
unsigned int  expiryTimeInMinutes,
az_span  sas_token 
)

◆ iot_sample_get_epoch_expiration_time_from_minutes()

int64_t iot_sample_get_epoch_expiration_time_from_minutes ( uint32_t  minutes)