#include "Cloud_PLC.h" // This line includes the necessary library for using CloudPLC functions.
void setup()
{
Cloud_PLC_initialisation(); // Configure digital pins O1, O2, O3, and O4 as OUTPUT
}
void loop()
{
Cloud_PLC_Digital_Write(O1, HIGH);
Cloud_PLC_Digital_Write(O2, HIGH);
Cloud_PLC_Digital_Write(O3, HIGH);
Cloud_PLC_Digital_Write(O4, HIGH);// Turn the LED on (HIGH is the voltage level)
delay(4000);
Cloud_PLC_Digital_Write(O1, LOW);
Cloud_PLC_Digital_Write(O2, LOW);
Cloud_PLC_Digital_Write(O3, LOW);
Cloud_PLC_Digital_Write(O4, LOW);// Wait for 4 seconds
// Turn the LED off by making the voltage LOW
delay(2000); // Wait for 4 seconds
}