processing incoming MQTT messages to actuate gateway local relay / variable.
-
I've seen the relay sketch which has a receive function but that is for Radio Nodes, i was wondering about processing arrived MQTT messages to the MQTTClient gateway so it changes a variable / acts on a relay.
is there any way to do that ? is it using the receive function as well ?
note: i've already defines a message that has the V_type and CHILD_ID matching, i've got the message on the gateway console, i was wondering to get it into a variable.
Thanks
-
@Meshx86 i figured out the problem which i believe it is a bug, you can't have in your incoming MQTT prefix "/" or "-" in the path, otherwise the message won't be parsed properly
-
1 out of 3
Suggested Topics
-
Switching from v1.5 MQTT gateway to ESP8266 MQTT Client gateway
OpenHAB • 1 Feb 2016, 18:41 • mbj 8 Mar 2016, 22:07 -
testing with different controllers (mqtt brokers)
Controllers • 4 Jan 2023, 16:48 • OldSurferDude 5 Jan 2023, 07:26 -
ESP8266MQTTClientGateway
Bug Reports • 30 Jan 2016, 10:26 • mbj 30 Jan 2016, 14:16 -
Node are not receiving messages from domoticz
Domoticz • 17 May 2016, 20:35 • davy39 19 May 2016, 09:35 -
💬 Bed occupancy detector
OpenHardware.io • 4 Oct 2018, 19:18 • openhardware.io 4 Oct 2018, 19:18 -
Can't get message from OpenHab to MySensor
OpenHAB • 26 Jul 2016, 05:30 • A Former User 27 Jul 2016, 04:58 -
MQTT gateway - Openhab & Mosquitto
OpenHAB • 25 Feb 2015, 01:48 • alexeinz 25 Feb 2015, 07:52 -
Need some minor help with MQTT strings
Troubleshooting • 22 Dec 2015, 23:09 • drock1985 23 Dec 2015, 16:01