001/** 002 * Copyright (c) 2014-2015 Digi International Inc., 003 * All rights not expressly granted are reserved. 004 * 005 * This Source Code Form is subject to the terms of the Mozilla Public 006 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 007 * You can obtain one at http://mozilla.org/MPL/2.0/. 008 * 009 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 010 * ======================================================================= 011 */ 012package com.digi.xbee.api.listeners; 013 014import com.digi.xbee.api.RemoteXBeeDevice; 015import com.digi.xbee.api.io.IOSample; 016 017/** 018 * This interface defines the required methods that an object should implement 019 * to behave as an IO Sample listener and be notified when IO samples are 020 * received from a remote XBee device of the network. 021 */ 022public interface IIOSampleReceiveListener { 023 024 /** 025 * Called when an IO sample is received through the connection interface. 026 * 027 * @param remoteDevice The remote XBee device that sent the sample. 028 * @param ioSample The received IO sample. 029 * 030 * @see com.digi.xbee.api.RemoteXBeeDevice 031 * @see com.digi.xbee.api.io.IOSample 032 */ 033 public void ioSampleReceived(RemoteXBeeDevice remoteDevice, IOSample ioSample); 034}