flexiblepower / s2-ws-json

A WebSockets and JSON based protocol specification implementing the EN50491-12-2 "S2" standard for home and building energy management
Apache License 2.0
27 stars 2 forks source link

ReceptionStatus.subject_message_id in case of INVALID_DATA #21

Open lfse-slafleur opened 2 months ago

lfse-slafleur commented 2 months ago

It is possible that a message cannot be read due to various reasons. The S2 standard defines that a ReceptionStatus should be send where the status is set to INVALID_DATA: https://github.com/flexiblepower/s2-ws-json/wiki/Common_messages#receptionstatusvalues In that case, a message_id is impossible to retrieve.

However, in ReceptionStatus the subject_message_id field is required (https://github.com/flexiblepower/s2-ws-json/wiki/Common_messages#receptionstatus). What should we define as the subject_message_id if the message_id is not retrievable and the ReceptionStatus.status is INVALID_DATA?

lfse-slafleur commented 2 months ago

For now we are using '00000000-0000-0000-0000-000000000000' in s2-python