IOTO Native API

Extensions

Ioto

Functions

WebHost*ioGetWebHost(void)
 Get the WebHost instance.
voidioInit(cchar *profile)
 Initialize Ioto.
intioLogMessage(IotoLog *log, Time time, cchar *msg)
 Log a message.
voidioTerm(void)
 Terminate Ioto.

Typedefs

IotoLogIoto log control.

Defines

Ioto

Ioto
API Stability:
Evolving.
Fields:
Json *auth Auth configuraiton.
char *awsAccess AWS temp creds.
char *awsRegion Default AWS region.
char *awsSecret AWS cred secret.
char *awsToken AWS cred tokenn.
boolclaimed Web server.
Json *config Configuration.
cchar *instance Device claimed by a user. EC2 instance.
Json *local Local state.
RList *logs Log file ingestion list.
boollogsService Builder extensions.
Mqtt *mqtt Mqtt object.
boolmqttService Log file ingest to CloudWatch logs.
char *profile Run profile. Defaults to "prod".
boolprovisionService MQTT service.
boolserializeService Provision service.
Json *shadow Shadow state.
cchar *shadowName AWS IoT shadow name.
boolshadowService Manufacturing serialization.
char *shadowTopic AWS IoT shadow topic.
Json *state State storage.
boolstateService AWS IoT core shadows.
cchar *thingName AWS IoT thing name.
booluserService AWS IoT core service.
boolwebService Sync device state to AWS.
WebHost * ioGetWebHost (void )

Get the WebHost instance.

Returns:
The WebHost object.
API Stability:
Evolving.
See Also:
void ioInit (cchar *profile)

Initialize Ioto.

Parameters:
profileConfiguration profile. Defaults to "prod".
API Stability:
Evolving.
See Also:
int ioLogMessage (IotoLog *log, Time time, cchar *msg)

Log a message.

Parameters:
logLog capture object.
timeCurrent wall clock time.
msgMessage to log.
Returns:
Zero if successful.
API Stability:
Evolving.
See Also:
void ioTerm (void )

Terminate Ioto.

API Stability:
Evolving.
See Also:

Functions

Typedefs

IotoLog

Ioto log control.

Description:
Used to send log data to AWS Cloud Watch.
Fields:
RBuf *buf Current buffer.
RList *buffers Queue of buffers to send.
TicksbufStarted Time the current buffer started storing data.
boolcreate Create log group if it does not alraedy exist.
REventevent Buffer timeout event.
intevents Number of events in current buffer.
inteventsHiw High water mark of events to trigger flushing to CW.
char *group AWS Cloud Watch Logs group name.
inthiw Buffer byte count hiw.
Tickslinger How long to buffer data before flushing to Cloud Watch.
intmax Buffer byte count maximum size.
intmaxEvents Maximum number of events in buffer - discard buffer if exceeded.
char *path Log path name.
char *region Region storing the captured log data.
RBuf *sending Buffer currently being sent.
char *sequence Next PutLogEvents sequence number, required by AWS API.
char *stream AWS Cloud Watch Logs stream name.
Url *up Url to connect to AWS Cloud Watch.
API Stability:
Evolving.

© Embedthis Software. All rights reserved.