1#ifndef HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
2#define HA_CLOSURE_ANALYSIS_AUTHENTICATE_H
7#include <cjson/cJSON.h>
14#define WW_TOKEN_SIZE 100
18#define WW_DEFAULT_ENV_NAME "WW_TOKEN"
#define WW_TOKEN_SIZE
Willy weather access token size.
Definition: authenticate.h:14
static char WW_TOKEN[WW_TOKEN_SIZE]
Definition: authenticate.h:15
uint8_t WillyWeather_GetToken(const char *env_var_name)
Get Willy Weather API token from environment variable.
Definition: authenticate.c:9
uint8_t WillyWeather_CheckAccess(void)
Check API token is initialised and available for use.
Definition: authenticate.c:23