libelos_lite.h¶
// SPDX-License-Identifier: MIT
-
bool elosliteConnect(struct addrinfo addrInfo, elosliteSession_t *session)¶
[source] Establishes connection to elos.
- Parameters:
addrInfo – addrinfo struct for the host to connect to
session – session data structure used to store the connection for other functions
- Returns:
true for success or false on failure
-
bool elosliteConnectTcpip(const char *host, uint16_t port, elosliteSession_t *session)¶
[source] Establishes connection to elos over tcp/ip.
- Parameters:
host – host address as ipv4 or ipv6, e.g. “192.168.2.1”
port – port number, e.g. 54321
session – session data structure used by other functions
- Returns:
true for success or false on failure
-
bool elosliteDisconnect(elosliteSession_t *session)¶
[source] Closes a connection to elos.
- Parameters:
session – session data structure holding the connection
- Returns:
true for success or false on failure
-
bool eloslitePublish(elosliteSession_t *session, elosliteEvent_t *event)¶
[source] Publish an event to elos.
- Parameters:
session – session data structure holding the connection
event – the event to publish
- Returns:
true for success or false on failure