Adding the Function Template to the Application

Instantiation of the Device Module

To add the function template to your application, execute the Add Function From Template command.

In the Add Function From Template dialog box, you can adjust initial values for selected variables which are provided by the template:

Variable

Data type

Default Value

Description

sServerIp

STRING[15]

'205.167.7.126'

IPv4 address of the server the client should be connected to.

uiServerPort

UINT

80

Port of the server.

uiServerPortTls

UINT

443

Port of the server for connections using TLS (Transport Layer Security).

sHost

STRING

'httpbin.org'

Host name of the remote http server. This value is added to the header of HTTP.

sResourcePost

STRING

'/post'

Name of the resource to be reached by the Post request. This value is added to the header of HTTP.

sResourceGet

STRING

'/ip'

Name of the resource to be reached by the Get request. This value is added to the header of HTTP.

sDnsServerIp

STRING[15]

'10.128.144.135'

IPv4 address of the DNS server.