pub_initialize

Initializes the Publisher API.

Call this method before any other API in the Publisher API, and call it only once. Set the constant startup.version = PUB_STARTUP_VERSION before calling pub_initialize.

Syntax

uint16_t pub_initialize( PUB_STARTUP * startup_settings );

Parameters

Returns

uint16_t error_code

An error code or ERR_NONE (value 0).

Related concepts
main() method stub
Initialization
Related tasks
Developing the main() Method in a Stub
Related reference
Publisher API Data Structures