Skip to content

Commit fa4a0fd

Browse files
committed
network: Add support status LED control
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent dd722d9 commit fa4a0fd

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

include/network.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,27 @@ unsigned char *network_getlocalip(void);
134134
*/
135135
const char *network_getcurrapn(void);
136136

137+
/**
138+
* Setup Network status LED. Attach GPIO line managed by network
139+
* thread for status LED.
140+
*
141+
* IO Drive Logic: Positive (1 - High, 0 - Low)
142+
*
143+
* LED Timings in milliseconds (On Time/Off Time):
144+
* -----------------------------------------------
145+
* No Network/No Sim: LED Off
146+
* Searching Network: 50/500
147+
* GSM/GPRS Registered: 50/1000
148+
* Socket Connecting: 500/500
149+
* Network Idle: 50/2000
150+
* Data Sending: 100/100
151+
* Unknow error: 50/50
152+
*
153+
* @param gpionum [in] GPIO Number to use
154+
* @return 0 on success, negative value on error
155+
*/
156+
int network_setup_statusled(int gpionum);
157+
137158
#ifdef __cplusplus
138159
}
139160
#endif

0 commit comments

Comments
 (0)