Hi,
I want to create a module in Ignition that runs in the value changed of one Tag.
I create a skeleton with scopes and hooks for gateway and designer, but I don’t know how make the start of my module in the gateway.
This is my GatewayHook:
[code]package com.txt.mongo_module.gateway;
import com.inductiveautomation.ignition.common.licensing.LicenseState;
import com.inductiveautomation.ignition.gateway.model.AbstractGatewayModuleHook;
import com.inductiveautomation.ignition.gateway.model.GatewayContext;
public class GatewayHook extends AbstractGatewayModuleHook {
@Override
public void setup(GatewayContext context) {
// TODO Write code, override methods as needed
}
@Override
public void shutdown() {
}
@Override
public void startup(LicenseState licenseState) {
}
}
[/code]
This is the DesignerHook:
[code]package com.txt.mongo_module.designer;
import com.inductiveautomation.ignition.common.licensing.LicenseState;
import com.inductiveautomation.ignition.designer.model.AbstractDesignerModuleHook;
import com.inductiveautomation.ignition.designer.model.DesignerContext;
public class DesignerHook extends AbstractDesignerModuleHook {
@Override
public void startup(DesignerContext context, LicenseState activationState)
throws Exception {
// TODO Write code here, override methods as needed.
}
}
[/code]
I tried to compile it and to load the module in Ignition, but it don’t work in the value change of one Tag.
I attached the rar with the skeleton of the project.
Can you help me?
Thanks,
Andrea