[OH2] Control ESP8266 Relay using MQTT Eventbus

OH gives me this error:
[ERROR] [.mqtt.internal.MqttMessageSubscriber] - Error processing MQTT message.
MQTTLENS show correct message on topic: “openhab / in / Robo500 / state”
I do not understand if the error depends on OH or the sketch

what is the message payload published on topic openhab/in/Robo500/state ?
and what does the onoff.map contain?

Anyway: For troubleshooting stuff, it’s better to open up a new thread and link to the original tutorial thread.

if (digitalRead (FEED) == HIGH) {
feed.publish (“ON”);
}
if (digitalRead (FEED) == LOW) {
feed.publish (“OFF”);
}

I keep getting this message " Got: ON
Close Relay for 100 ms & then Open

And what should i add to the code to make the gate close ?