![Advantech UbiQ User Manual Download Page 72](http://html1.mh-extra.com/html/advantech/ubiq/ubiq_user-manual_2856809072.webp)
UbiQ Scenario Manager User Manual
66
5.2.11
GetFileFromHttp
Syntax
void GetFileFromHttp(string sHttp, string sDesFile)
Parameters
sHttp: Specifies the homepage file address.
sDestFile: Specifies the destination file on the device side. It should include the
path name.
Description
This function will get the file from the specified homepage address if the homep-
age exist.
Example
string sHttp;
string sDestFile;
sHttp=”http://taiwan.advantech.com.tw/unzipfunc/Unzip/EH-7105_ds.pdf”;
sDestFile=”\\EH7105.pdf”;
GetFileFromHttp(sHttp,sDestFile);
See Also
none
5.2.12
getenv
Syntax
string getenv(char* pEnv) or
string getenv(string sEnv)
Parameters
pEnv: Specifies the Null-ended environment variable.
sEnv: Specifies the environment variable string.
Description
This function returns the string value to the given environment variable.
Comments
This function just is used for writing CGI script on the WebCON kernel.
Example
string sButton;
sButton=getenv(“BUTTON”);
printf(“BUTTON=%s”,sButton);
See Also
printf
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...