HTTP_StatePublisher (FB)ΒΆ

FUNCTION_BLOCK HTTP_StatePublisher EXTENDS CBML.ETrigA IMPLEMENTS IExponentialBackoff

Function Block to publish device State over the Google Cloud Iot Core HTTP Bridge

InOut:

Scope

Name

Type

Initial

Comment

Inherited from

Input

xExecute

BOOL

Rising edge: Starts defined operation
FALSE: Resets the defined operation after ready condition was reached

ETrig

Output

xDone

BOOL

TRUE: Ready condition reached

ETrig

xBusy

BOOL

TRUE: Operation is running

ETrig

xError

BOOL

TRUE: Error condition reached

ETrig

Input

xAbort

BOOL

TRUE: Aborts the operation

ETrigA

Output

xAborted

BOOL

TRUE: Abort condition reached

ETrigA

Inout

HTTPBridge

HTTP_Bridge

Instance of the HTTP Bridge

Input

pbPayload

POINTER TO BYTE

Pointer to Payload Data

uiPayloadSize

UINT

Size of Payload Data

wsContentType

WSTRING

Payload content type

uimaximum_backoff_Time

UINT

3200

Maximum Backoff time allowed in [ms]. Default is 3200 ms

Output

eError

Error

Output Error

httpResult

WEB_CLIENT.HttpResult

HTTP Result

eHTTPError

WEB_CLIENT.ERROR

HTTP Error

Methods:

Structure: