lincomatic / open_evse

Firmware for Open EVSE
GNU General Public License v3.0
114 stars 163 forks source link

RAPI GS command response and ST asynchronous have different number format #52

Closed presslab-us closed 5 years ago

presslab-us commented 8 years ago

For example, in sleep mode the RAPI GS command response would be as follows: "OK 254 1". The asynchronous state announce would be like this: "ST fe". The documentation in rapi_proc.h implies they are in the same format "EVSE_STATE_xxx".

Perhaps the decimal response is better than hexadecimal because that's what everything else uses. But I do think they should have the same number format. What do you all think?

lincomatic commented 8 years ago

Good point. While I agree that it's an inconstency (sloppiness on my part), I'm not sure it's worth breaking existing code to fix it.

presslab-us commented 8 years ago

Yes, probably best to leave it. If I get some free time I'll try to clarify the documentation around this.

lincomatic commented 5 years ago

This is solved by $AT notification, which replaces $ST, and uses hex format.. code currently only resides in ocpp branch