CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_ErrorCode CHAI_Connect ( CPUINT16 const  wBrandID,
CPCHAR8 const *const  utf8BrandName,
CPCHAR8 const *const  utf8ContactInfo 
)

Get connected to the network. If this method is called when the CHAI is already connected, a redeclare of devices is performed and parameters are ignored.

Parameters
[in]wBrandIDThe BrandID used for later device declaration.
[in]utf8BrandNameThe Brand Name associated with the BrandID.
[in]utf8ContactInfoThe Contact Information associated with the BrandID.
Returns
Standard CHAILink Client return code. See CLC_ErrorCode enumeration.
Warning
This function can only be called in CopperLan context. This means in the pseudo task CPDoProcess(), in notification handlers or in asynchronous return handlers and not in SystemDoProcess() for instance.