tcMenu
Classes | Enumerations | Functions
BaseRemoteComponents.h File Reference

contains remote components that are shared across all remote devices. More...

Go to the source code of this file.

Classes

class  tcremote::DeviceInitialisation
 
class  tcremote::NoInitialisationNeeded
 
class  tcremote::BaseRemoteServerConnection
 
class  tcremote::TagValueRemoteServerConnection
 
class  tcremote::TcMenuRemoteServer
 

Enumerations

enum  RemoteServerType : uint8_t { TAG_VAL_REMOTE_SERVER , SIMHUB_CONNECTOR , TAG_VAL_WEB_SOCKET }
 

Functions

int tcremote::fromWiFiRSSITo4StateIndicator (int strength)
 

Detailed Description

contains remote components that are shared across all remote devices.

Function Documentation

◆ fromWiFiRSSITo4StateIndicator()

int tcremote::fromWiFiRSSITo4StateIndicator ( int  strength)

Turns a signal strength provided in S/N decibels as an integer into one of four strength icons from 1..4, as the 0 icon is usually to indicate no connection. Where 1 represents a poor connection and 4 represents a good connection.

Parameters
strengthan integer value in S/N decibels
Returns
the icon to use between 1..4