User`s guide
224  Appendix A - Programmer’s Reference 
if (m_oTimer1.lsRunning()) 
{ 
//execute code 
} 
GetMode() 
You can use the GetMode()method  to check the type of the referenced timer (repeating or one-time) 
when it is running. This method may be useful during runtime. 
SYNTAX 
FPM_TimerFlags_t GetMode() 
This method returns the type of timer (repeating or one-time) if the referenced timer is running. If 
the referenced timer has been stopped, this method returns UNKNOWN.  
EXAMPLE 
The following example demonstrates a GetMode()method that checks the type of a timer that is 
running.  
FPM_TimerFlags_t timerMode; 
timerMode = m_oTimer1. GetMode(); 
GetTimeoutMillis() 
You can use the GetTimeoutMillis()method  to check the timeout interval of the referenced 
timer when it is running. This method may be useful during runtime. 
SYNTAX 
uint_t GetTimeoutMillis() 
This method returns the timeout interval (in milliseconds) of the referenced timer if it is running. 
If the referenced timer has been stopped, this method returns ‘~0’. 
EXAMPLE 
The following example demonstrates a GetTimeoutMillis()method that checks the timeout 
interval of a timer that is running. 
int timerInterval; 
timerInterval = m_oTimer1.GetTimeoutMillis(); 
Reboot Method 
You can use the fnRebootSmartServer() method to reboot your SmartServer. 
SYNTAX 
STATUS fnRebootSmartServer (int a_nBootFlag); 
This method takes an integer that must be set to 0x00. 
EXAMPLE 
The following example demonstrates how to use the fnRebootSmartServer()method to 
reboot your SmartServer.  
#ifdef __cplusplus 
… 










