<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.14">
  <POU Name="MAIN" Id="{0e3fdce8-f875-4550-90a8-d40318549bbe}" SpecialFunc="None">
    <Declaration><![CDATA[PROGRAM MAIN
VAR
	fbClient:FB_IotHttpClient:=(sHostName:='127.0.0.1',bKeepAlive:=TRUE,	tConnectionTimeout:=T#10S);
	fbGetProductByBarCode:FB_GetProductByBarCode;
	fbGetPagedProducts:FB_GetPagedProducts;
	fbAddProduct:FB_AddProduct;
	fbDeleteProductById:FB_DeleteProductById;
	fbUpdateProduc:FB_UpdateProduct;
END_VAR
]]></Declaration>
    <Implementation>
      <ST><![CDATA[IF NOT fbClient.bConfigured THEN 
	fbClient.nHostPort:= 5000;
	fbClient.stTLS.bNoServerCertCheck:= FALSE;
END_IF

fbClient.Execute();

fbGetProductByBarCode(fbClient:=fbClient , bBusy=> , bError=>);

fbGetPagedProducts(fbClient:=fbClient , bBusy=> , bError=> );
fbAddProduct(fbClient:=fbClient , bBusy=> , bError=> );
fbDeleteProductById(fbClient:=fbClient , bBusy=> , bError=> );
fbUpdateProduc(fbClient:=fbClient , bBusy=> , bError=> );]]></ST>
    </Implementation>
    <LineIds Name="MAIN">
      <LineId Id="20" Count="1" />
      <LineId Id="69" Count="0" />
      <LineId Id="17" Count="0" />
      <LineId Id="19" Count="0" />
      <LineId Id="18" Count="0" />
      <LineId Id="25" Count="1" />
      <LineId Id="40" Count="0" />
      <LineId Id="39" Count="0" />
      <LineId Id="48" Count="0" />
      <LineId Id="57" Count="0" />
      <LineId Id="59" Count="0" />
    </LineIds>
  </POU>
</TcPlcObject>