Gateway#

API and Callbacks for the Gateway Component.

Software that supports a CLI based application running on a gateway-style device that has a POSIX compatible operating system. This plugin is NOT compatible with an system-on-a-chip (SOC) platform.

API#

EmberStatus
EmberStatus
backchannelStopServer(uint8_t port)
EmberStatus
backchannelReceive(uint8_t port, char *data)
EmberStatus
backchannelSend(uint8_t port, uint8_t *data, uint8_t length)
EmberStatus
backchannelCheckConnection(uint8_t port, bool waitForConnection)
EmberStatus
EmberStatus
backchannelServerPrintf(const char *formatString,...)
EmberStatus
backchannelClientPrintf(uint8_t port, const char *formatString,...)
EmberStatus
backchannelClientVprintf(uint8_t port, const char *formatString, va_list ap)

Enumerations#

enum
NO_CONNECTION = 0
CONNECTION_EXISTS = 1
NEW_CONNECTION = 2
CONNECTION_ERROR = 3
}

Typedefs#

typedef uint8_t

API Documentation#

backchannelSupported#

const bool backchannelSupported

backchannelEnable#

bool backchannelEnable

backchannelSerialPortOffset#

int backchannelSerialPortOffset

gatewayBackchannelStop#

void gatewayBackchannelStop (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

backchannelStartServer#

EmberStatus backchannelStartServer (uint8_t port)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport

backchannelStopServer#

EmberStatus backchannelStopServer (uint8_t port)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport

backchannelReceive#

EmberStatus backchannelReceive (uint8_t port, char * data)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport
char *N/Adata

backchannelSend#

EmberStatus backchannelSend (uint8_t port, uint8_t * data, uint8_t length)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport
uint8_t *N/Adata
uint8_tN/Alength

backchannelClientConnectionCleanup#

EmberStatus backchannelClientConnectionCleanup (uint8_t port)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport

backchannelCheckConnection#

BackchannelState backchannelCheckConnection (uint8_t port, bool waitForConnection)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport
boolN/AwaitForConnection

backchannelMapStandardInputOutputToRemoteConnection#

EmberStatus backchannelMapStandardInputOutputToRemoteConnection (int port)
Parameters
TypeDirectionArgument NameDescription
intN/Aport

backchannelCloseConnection#

EmberStatus backchannelCloseConnection (uint8_t port)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport

backchannelServerPrintf#

EmberStatus backchannelServerPrintf (const char * formatString, ... )
Parameters
TypeDirectionArgument NameDescription
const char *N/AformatString
...N/A

backchannelClientPrintf#

EmberStatus backchannelClientPrintf (uint8_t port, const char * formatString, ... )
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport
const char *N/AformatString
...N/A

backchannelClientVprintf#

EmberStatus backchannelClientVprintf (uint8_t port, const char * formatString, va_list ap)
Parameters
TypeDirectionArgument NameDescription
uint8_tN/Aport
const char *N/AformatString
va_listN/Aap

Enumeration Documentation#

BackchannelStateEnum#

BackchannelStateEnum
Enumerator
NO_CONNECTION
CONNECTION_EXISTS
NEW_CONNECTION
CONNECTION_ERROR

Typedef Documentation#

BackchannelState#

typedef uint8_t BackchannelState