package com.ociweb.grove;


import com.ociweb.iot.maker.*;

import static com.ociweb.iot.grove.analogdigital.AnalogDigitalTwig.*;
import static com.ociweb.iot.maker.Port.*;

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


    @Override
    public void declareConnections(Hardware c) {
    	c.useSerial(Baud.B_____9600);
    	c.setTimerPulseRate(1000);
    	//c.enableTelemetry();
    	c.limitThreads();
    }


    @Override
    public void declareBehavior(FogRuntime runtime) {
    	runtime.registerListener(new MP3Behavior(runtime));
    	runtime.registerListener(new MonitoringBehavior());
    }
    public static void main (String[] args){
    	FogRuntime.run(new MP3Player());
    }
          
}

@@ -53,19 +53,21 @@
 ker.
-*;%0A
+Baud;
 %0Aimport 
 stat
@@ -54,39 +54,32 @@
 er.Baud;%0Aimport 
-static 
 com.ociweb.iot.g
@@ -81,47 +81,60 @@
 iot.
-grove.analogdigital.AnalogDigitalTwig.*
+maker.FogApp;%0Aimport com.ociweb.iot.maker.FogRuntime
 ;%0Aim
@@ -138,23 +138,16 @@
 %0Aimport 
-static 
 com.ociw
@@ -163,14 +163,16 @@
 ker.
-Port.*
+Hardware
 ;%0A%0Ap

remove bad import