"This Impee has no sink nodes you can connect"


#1

Encountered while trying to do link the imp with the HTTP IN service softnode!


#2

SOLVED


#3

How did you solve it Nishant?


#4

Yes, can you please post a solution?


#5

You need to do two things:

  1. Create an output port
    somePort <- OutputPort("portName");

  2. 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]);
`