bt_init()

bt_init()

Description

Initializes interface for communication with Bluetooth module.

Syntax

bt_init();

Parameters

This function has no parameters.

Returns

Return value

Return explanation

Return value

Return explanation

SCRIPT_OPERATION_SUCCESS

Successfully initialized communication with Bluetooth.

SCRIPT_OPERATION_FAILED

Failed to initialize communication with Bluetooth.

SCRIPT_NO_ACCESS

Bluetooth already initialized.

Function call example

#include <io> #include <read> #include <float> #include <string> #include <core> #include <write> #include <define> #include <socket> #include <bluetooth> main() { bt_init(); for(;;) { Delay(1000); } }

Notes and Warnings

Bluetooth initialization fails if script is unable to establish communication with the Bluetooth module.