If I use the sketch of the example ArduinoEthernet in the setup:
pinMode(2, OUTPUT);
// pin control example (i.e. turning on/off a light, a relay, etc)
thing[“led”] << digitalPin(2);
the API works very well.
But if I use the example of the documentation:
thing[“led”] << [](pson& in){
digitalWrite(10, in ? HIGH : LOW);
};
the led turns on, but with a very low current.
How could I fix this?
I tested it at UNO and MEGA with the same resuts
Thanks!