Igtimi Yachtbot Firmware
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions
utConnection_Riot.c File Reference
#include "utConnection_Riot.h"
#include "utPayloadStd_Riot.h"
#include "utCommands.h"
#include "utStrings.h"
#include "utTime.h"
#include "utPayloads_Heartbeat.h"
#include "utPayloads_Api.h"
#include <ctype.h>
#include "utRealTimeClock.h"
#include "uTrack.h"
#include "utEEPROM.h"

Data Structures

struct  RiotConnectionState
 

Macros

#define HEARTBEAT_SEND_TIME   15.0f
 
#define HEARTBEAT_TIMEOUT   30.0f
 
#define HEARTBEAT_SEND_TICKS   HEARTBEAT_SEND_TIME * utTime_GetTicksPerSecond()
 
#define HEARTBEAT_RECV_TICKS   HEARTBEAT_TIMEOUT * utTime_GetTicksPerSecond()
 
#define RIOT_PROTOCOL_NAME   "RIOT"
 
#define RIOT_HOST_ADDRESS   "riot.igtimi.com"
 
#define RIOT_PORT   6000
 
#define MAX_ADDRESS_LENGTH   64
 

Enumerations

enum  DeviceAuthState {
  DeviceAuthState_None , DeviceAuthState_RequestingNewDgt , DeviceAuthState_Authenticating , DeviceAuthState_Authenticated ,
  DeviceAuthState_Error
}
 

Functions

bool utConnection_Riot_Notify (UT_DeviceMessage state)
 
ConnectionProtocol * getConnectionProtocolInstance (u8 connectionId, ConnectionInterface *interface)
 

Detailed Description

RIoT connection. Holds methods for sending / subing to data.


Precondition
Author
Stephen Markham
Date
19/05/2020
Last Updated: 19/05/2020
Note
- not finshed

Function Documentation

◆ utConnection_Riot_Notify()

bool utConnection_Riot_Notify ( UT_DeviceMessage  state)

Main Loop calls back to here

Parameters
UT_DeviceMessagestate - Current state of the loop
Returns
bool
Note