Skip to content
Snippets Groups Projects
Commit bc65ae93 authored by Holger Brand's avatar Holger Brand
Browse files

Prefix idn topic with 'E5025|' before firmware version.

parent 42b7c258
Branches feature/e5025
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ async def e5025_readout_loop(mqtt_client: aiomqtt.Client,
cryo_e5025_logger.info(f'{tn}.{cn}.{fn}: Using {com_interface}')
try:
response: str = await e5025_transaction(mqtt_client, com_lock, com_interface, command='V')
idn: str = response[2:].split('V*', 1)[0]
idn: str = 'E5025|' + response[2:].split('V*', 1)[0]
await mqtt_client.publish(cryo_globals.topic_prefix + '/e5025/idn', payload=idn, retain=True)
except Exception:
await mqtt_client.publish(cryo_globals.topic_prefix + '/e5025/idn', payload='NA', retain=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment