Start a new topic

RAPI response

Hi,


I'm trying to control my OpenEvse charger with NodeRed using MQTT.


All works fine excent i have no way of telling which rapi out message is being responded to.


ie if i send either

openevse/rapi/in/$GE or openevse/rapi/in/$GT

the responding topic is the same.


##### GT


16/07/2019, 15:15:18node: 489eb2ce.9bd34copenevse/rapi/in/$GT : msg : Object

object

_msgid"1539810e.7f8ccf"

topic"openevse/rapi/in/$GT"

payload""

 

16/07/2019, 15:15:18node: f1b4e1f8.366d3openevse/rapi/out : msg : Object

object

topic"openevse/rapi/out"

payload"$OK 19 7 16 15 15 18^11"

qos1

retainfalse

_topic"openevse/rapi/out"

_msgid"5cff2b32.18ba94" ####### GE 

 

16/07/2019, 15:15:48node: 489eb2ce.9bd34copenevse/rapi/in/$GE : msg : Object

object

_msgid"32a55d2f.d97302"

topic"openevse/rapi/in/$GE"

payload""

16/07/2019, 15:15:48node: f1b4e1f8.366d3openevse/rapi/out : msg : Object

object

topic"openevse/rapi/out"

payload"$OK 40 0001^25"

qos1

retainfalse

_topic"openevse/rapi/out"

_msgid"8b1f3434.6b6758"



Is there a way of passing an optional parameter?


Thanks in advance.


Tom


Yes, you can send a sequence ID which is echoed back in the response. MQTT Developers guide is attached.

pdf

I wonder if you could give me an example of the syntax as I can't seem to get it to work.


Thanks


Tom

Answered my own question - For anyone trying to do this in NodeRed it's as simple as passing your id after a : in the payload


ie

:55

Login or Signup to post a comment