package com.coiweb.oe.foglight.api;


import static com.ociweb.iot.grove.GroveTwig.*;

import com.ociweb.iot.maker.*;
import static com.ociweb.iot.maker.Port.*;

public class DigitalListener implements FogApp
{
    ///////////////////////
    //Connection constants 
    ///////////////////////


    @Override
    public void declareConnections(Hardware c) {
        ////////////////////////////
        //Connection specifications
        ///////////////////////////

        
    }


    @Override
    public void declareBehavior(FogRuntime runtime) {
        //////////////////////////////
        //Specify the desired behavior
        //////////////////////////////

    }
          
}

@@ -288,17 +288,159 @@
 ///////%0A
+%09private static final Port BUZZER_PORT = D2;%0A%09private static final Port BUTTON_PORT = D3;%0A%09private static final Port TOUCH_SENSOR_PORT = D4;%0A%09
 %0A
-
 %0A    @Ov
@@ -604,25 +604,140 @@
 ///////%0A
-%0A        
+    %09c.connect(Buzzer, BUZZER_PORT);%0A    %09c.connect(Button, BUTTON_PORT);%0A        c.connect(TouchSensor, TOUCH_SENSOR_PORT);
 %0A    %7D%0A%0A
@@ -883,16 +883,16 @@
 ehavior%0A
-
         
@@ -921,16 +921,110 @@
 ////////
+%0A    %09runtime.addDigitalListener(new DigitalListenerBehavior(runtime)).includePorts(DIGITALS);
 %0A%0A    %7D%0A

Update DigitalListener.java