17 Commits

Author SHA1 Message Date
c0a0e3e442 feat: add client message handler to send info messages from services to clients; closes 258 2024-05-03 08:32:28 +02:00
6b89240f46 docs: review docs, fix ScanModificationMessage, monitor callback and DAPRequestMessage 2024-04-26 07:59:24 +02:00
95ac2055eb refactor: moved messages to pydantic 2024-04-10 10:28:14 +02:00
996809f3a0 refactor: renamed queueID to queue_id 2024-03-22 15:07:19 +01:00
01b4e9cc68 refactor: renamed scanID to scan_id 2024-03-22 15:06:14 +01:00
2fd1953a55 refactor: removed remaining loads/dumps 2024-03-06 07:44:26 +01:00
de8333b164 fix(serialization): move BECMessage check in .loads() in the BEC message decoder
This allows to call .loads() on any bytes string
2024-02-08 23:39:07 +01:00
aa9ff2d3d0 test: more tests 2024-02-08 19:26:55 +01:00
3d087ef87d fix(AlarmMessage)!: content member (dict) changed to msg (str)
In practice it was already used as a message.
2024-02-07 12:43:52 +01:00
8bbfd10ca7 refactor(messages)!: messages refactoring, new serialization module
To have a better separation of concern between messages and how they are conveyed in connectors.
BECMessage can be simple dataclasses, leaving the serialization to the connector which transport those.
The serialization module itself can be isolated, and in the case of msgpack it can be extended to
understand how to encode/decode BECMessage, to simplify writing code like with BundleMessage or to
be able to automatically encode numpy or BECStatus objects.
Finally, client objects (producers and consumers) can receive BECMessage objects instead of having
to dump or load themselves.
2024-02-07 12:43:52 +01:00
ce1adf4800 test: added test for DeviceConfigMessage actions 2024-01-23 13:37:40 +01:00
67903a47bd feat: added GUI config endpoint 2023-11-21 14:14:25 +01:00
06f2d781ae refactor: rename module BECMessage -> messages
This should help to avoid confusion between BECMessage module and
BECMessage class located in the same module
2023-11-10 10:28:53 +01:00
524ef24da0 refactor: flatten bec_lib structure 2023-11-10 10:24:33 +01:00
9381c7d646 fix: fixed bundled messages for 1.2 2023-07-12 16:07:27 +02:00
fe2bd6c935 feat: added message version 1.2 for better performance 2023-07-12 15:37:01 +02:00
a944e43e1a feat: renamed bec_client_lib to bec_lib 2023-06-28 11:04:24 +02:00