Oyster Harvest Area Closure Analysis 0.1
Prediction and analysis of NSW oyster harvest area closures.
Loading...
Searching...
No Matches
authenticate.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <log.h>
#include "http.h"
Include dependency graph for authenticate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UBIDOTS_TOKEN_SIZE   100
 Maximum number of characters in access token. More...
 
#define UBIDOTS_DEFAULT_ENV_NAME   "UBI_TOKEN"
 Default environmental variable for ubidots. More...
 

Functions

int8_t Ubidots_GetToken (const char *env_var_name)
 Get / set access token. More...
 
int8_t Ubidots_CheckAccess (void)
 Check access token. More...
 

Variables

static char UBIDOTS_TOKEN [UBIDOTS_TOKEN_SIZE]
 

Macro Definition Documentation

◆ UBIDOTS_DEFAULT_ENV_NAME

#define UBIDOTS_DEFAULT_ENV_NAME   "UBI_TOKEN"

Default environmental variable for ubidots.

◆ UBIDOTS_TOKEN_SIZE

#define UBIDOTS_TOKEN_SIZE   100

Maximum number of characters in access token.

Function Documentation

◆ Ubidots_CheckAccess()

int8_t Ubidots_CheckAccess ( void  )

Check access token.

◆ Ubidots_GetToken()

int8_t Ubidots_GetToken ( const char *  env_var_name)

Get / set access token.

Variable Documentation

◆ UBIDOTS_TOKEN

char UBIDOTS_TOKEN[UBIDOTS_TOKEN_SIZE]
static