System calls


bool featureEnabled(HAL_Feature feature)

Returns true if the feature is enabled.

Beware of features such as FEATURE_DISABLE_LISTENING_MODE. A value of true means listening mode is disabled, and false means listening mode is not disabled (is enabled).


Since 3.3.0:

Device OS 3.3.0 adds BLE provisioning mode which allows products to have a customized BLE setup experience for configuring Wi-Fi credentials. While similar in function to listening mode, the two modes are mutually excusive. Since BLE provisioning mode is disabled when in listening mode, products that rely on BLE provisioning mode will typically disable listening mode to make sure BLE provisioning mode cannot be disabled. That is done by using the following code in their main application file: