The following process assumes a suitable wrapper layer has been provided or written for your platform.
In order to connect to a compatible black box fish finder and perform all necessary initialization operations, the following steps must be performed in the order shown.
Before the created STFishFinder object can be used, it must be initialized by the black box. Prior to being initialized, the status of the API is FF_API_STATUS_NOT_INITIALIZED. This status may be confirmed by calling the GetApiStatus() member function, although this is not required.
To begin the initialization process, call the Hello() member function. This will send a message to the black box to initiate communication. It will also change the API status to FF_API_STATUS_INITIALIZING_PLEASE_WAIT.
Upon receiving the Hello message, the black box will begin uploading initial state information to the API. The state information being uploaded is the same for all devices that connect to the same black box.
The API receives this state information through a series of calls to ParseFFInputStream() These calls should occur within an event handler provided by the wrapper.
During the process of uploading the initial state information to the API, the wrapper and/or application program can poll the API status by recurring calls to GetApiStatus() . (See, however, the note below.)
When the process of uploading the initial state has completed, the API status changes to FF_API_STATUS_READY, and the API will then call the Callback_SettingChanged_t callback function, with its first argument containing the value FF_SETTING_TYPE_API_READY.
With the API status having reached FF_API_STATUS_READY, all other STFishFinder class member functions now become usable.
It is recommended that the application program now perform its own initialization of the API by calling the various setter functions for Local Settings. Many of the local settings are likely to be changed by the user (or by the application on behalf of the user), and it may be beneficial to save the user's settings in persistent storage (e.g. flash memory or hard drive) and restore these settings each time the application reconnects to the black box. The present step is the time to do this.