HTTP_Bridge (FB)¶
FUNCTION_BLOCK HTTP_Bridge EXTENDS CBML.LConTo
Function Block to connect with the Google Cloud Iot Core over HTTP Bridge
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnableBOOLTRUE: Activates the defined operationFALSE: Aborts/resets the defined operationLConTo
udiTimeOutUDINTMax. operating time for executing [µs], 0: No operating time limit
LConTo
Output
xDoneBOOLTRUE: Ready condition reachedLConTo
xBusyBOOLTRUE: Operation is runningLConTo
xErrorBOOLTRUE: Error condition reachedLConTo
Input
sproject_idSTRING(255)PROJECT_ID used by Google IoT CORE
scloud_regionSTRING(255)REGION used by Google IoT CORE
sregistry_idSTRING(255)REGISTRY_ID used by Google IoT CORE
sdevice_idSTRING(255)DEVICE_ID used by Google IoT CORE
sUseCaseNamePrivateKeySTRINGUse Case Name for Certificate used for creation of JWT
sCommonNamePrivateKeySTRINGCommon Name for Certificate used for creation of JWT
udiJWTExpirationTimeUDINT3600
Expiration Time of the JWT, in [s]. Default 3600s
sSNTPServerREFERENCE TO STRING(255)
The IP address or the name of a SNTP server to get the UTC time. If the input is not set, then the local system time will be used.
Output
eErrorOutput Error