using UnityEngine;
using System;
using System.Collections;
using MiMic.CsApi;
using MiMic.CsApi.LPC1769;
/// <summary>
/// The basic MiMic behaviour.
/// MiMic needs a periodic handler function.
/// </summary>
public class MiMicBehaviourBase : MonoBehaviour
{
	private Mcu _mcu;
	// Use this for initialization
	void Start (){
		//Set a periodic handler.
		this._mcu=new Mcu(this,"_mcuCallback","192.168.128.39",false);
	}
	/**
	 * The MiMic Event callback
	 * (This callback function is called by MiMic.MCU instance in periodic)
	 */
	public void _mcuCallback()
	{
		//call the periodic proc here.
		this._mcu.periodicProc();
	}
}
