Enabling tunneling and adding a tunnel with a script
Hi
I'm planning to write a script which would
1. Enable tunneling for a thing which is based on remoteThingWithTunnels
2. Create a new tunnel with these parameters:
name: ssh
host: 127.0.0.1
port: 22
App URI: undefined
# Connections: 1
Protocol: tcp
I have tried to use AddTunnel-method as following
var params = {
numConnects: "1" /* STRING */,
port: "22" /* STRING */,
proto: "tcp" /* STRING */,
name: "ssh" /* STRING */,
host: "127.0.0.1" /* STRING */,
description: "ssh tunnel" /* STRING */
};
me.AddTunnel(params);
However, it gives me this error:
Wrapped java.lang.Exception: No service handler defined for service AddTunnel on thing [TestThing] Cause: No service handler defined for service AddTunnel on thing [TestThing]

