Myriota Flex SDK 2.5.0
Loading...
Searching...
No Matches
Self Tests

Run a self-test on the FlexSense device. More...

Functions

int FLEX_HWTest (void)
 

Detailed Description

Run a self-test on the FlexSense device.

Function Documentation

◆ FLEX_HWTest()

int FLEX_HWTest ( void )

Performs a Hardware test for the FlexSense. The test enables the 5V power on the external connector, and blinks the boards led from green to blue. The test blocks all other board functionality until the push button is pressed.

Returns
FLEX_SUCCESS (0) if succeeded and < 0 if failed.
Return values
-FLEX_ERROR_POWER_OUTunable to initialise power out or LED
-FLEX_ERROR_BUTTONerror enabling or disabling push button
-FLEX_ERROR_LEDerror setting LED state