Commit Graph

16 Commits

Author SHA1 Message Date
9d2db3672c
Add SPI data handling and serialization support
Introduced `SpiParameters` and related structs to process SPI data. Added JSON marshaling/unmarshaling logic and a handler for the "SPI" command in the server. This enables parsing and transforming SPI data effectively for device communication.
2025-02-23 15:13:27 +03:00
519ad39c0f
Removed DSM 2025-02-23 12:57:09 +03:00
7c348629d6
Add custom notFoundError type and improve error handling
Introduce the notFoundError struct to provide more detailed error messages for missing handlers like alarms, JSON operations, and payload types. Update error handling to leverage the new custom type and use errors.As for better flexibility. Additionally, update module imports to version v2 in relevant files.
2025-02-23 11:51:16 +03:00
58b1c67b97
Update module path to include version suffix
The module path was updated to align with Go versioning conventions by appending "/v2". This change ensures compatibility with Go's module versioning system and properly reflects the major version update.
2025-02-22 22:16:52 +03:00
102c9bb36a
Refactor network handling with SmartPackage abstraction
Introduced the SmartPackage struct to simplify and centralize logic for handling various payloads, including JSON and alarms. Moved specific handlers into dedicated functions and utilized maps for dynamic process function assignment. Improved error handling and modularity for better scalability and maintainability.
2025-02-22 21:15:03 +03:00
16da4affa8
Refactor and enhance handling of payloads and data structures
Added support for handling various payload types, including GPS and alarms, with new structures and constants. Introduced helper methods for JSON marshalling/unmarshalling of GPS data and modularized the handling of certificates, configurations, and alarms. Implemented foundational server code for testing and expanded several package functionalities.
2025-02-22 19:23:16 +03:00
f3083820dc
Added testing and rewrite serializer
Signed-off-by: Alexander Lazarenko <kerblif@unprism.ru>
2025-02-07 21:04:06 +03:00
f6f762d0dc
Remove github.com/tidwall/pretty v1.2.0 from go.sum 2024-01-06 14:59:00 +03:00
11b19333e1
Refactor MediaRequestRemotePlayback function to handle end_time parameter 2024-01-06 14:56:42 +03:00
d302e599ce
Added parameters 2023-12-31 14:13:27 +03:00
3241d59e7b
Returned env 2023-11-30 21:37:30 +03:00
71d0bc1018
commented logs 2023-11-30 21:35:52 +03:00
bfdca3ffcb
File split 2023-11-30 20:05:11 +03:00
b26b32ea73
Change name 2023-11-29 15:01:15 +03:00
975812efdb
Change golang package name 2023-11-29 14:45:16 +03:00
0f3377d2b8
Initial 2023-11-29 14:16:00 +03:00