1 package iotcode.AmcrestCamera;
3 import java.io.IOException;
5 import java.util.ArrayList;
6 import java.util.Arrays;
7 import iotrmi.Java.IoTRMICall;
8 import iotrmi.Java.IoTRMIObject;
10 import iotcode.interfaces.*;
12 public class CameraSmartCallback_CallbackStub implements CameraSmartCallback {
14 private IoTRMICall rmiCall;
15 private String callbackAddress;
18 private int objectId = 0;
21 public CameraSmartCallback_CallbackStub(IoTRMICall _rmiCall, String _callbackAddress, int _objectId, int[] _ports) throws Exception {
22 callbackAddress = _callbackAddress;
28 public void newCameraFrameAvailable(byte latestFrame[], long timeStamp) {
30 Class<?> retType = void.class;
31 Class<?>[] paramCls = new Class<?>[] { byte[].class, long.class };
32 Object[] paramObj = new Object[] { latestFrame, timeStamp };
33 rmiCall.remoteCall(objectId, methodId, retType, null, paramCls, paramObj);