Encountered while trying to do link the imp with the HTTP IN service softnode!
SOLVED
How did you solve it Nishant?
Yes, can you please post a solution?
You need to do two things:
-
Create an output port
somePort <- OutputPort("portName");
-
Add the output port to the array of output ports in the imp.configure:
imp.configure("name", [], [somePort])
Edit: Here’s a complete example that writes the value of a button:
`out <- OutputPort(“button”);
function buttonpress() {
local x = hardware.pin1.read();
out.set(x);
}
hardware.pin1.configure(DIGITAL_IN, buttonpress);
imp.configure(“output port example”, [], [out]);
`