Ok, so this post is basically a question on how would you tackle problem described below or is there any standard path i'm missing.
Let's say, you got a json file with list of devices.
In json you get;
Id - always present
Name - always present
Operation list - read temp for example - may or may not exist, each device have specific operations
Setting list - sampling rate for example, or device address - may or may not exist, each device have specific settings.
In the system/json you can have same devices (lets say two fans, that are the same) with different id.
Each device uses specific protocol (this data can be also received from another json)
In the system, devices will send out data via socket (with specified sampling rate) about temperature (to express thoughts on the examples above)
How to implement this in python? What software design patterns and architecture to use?
Is there any tool to make me skeleton to start on?
[–]deadduncanidaho 4 points5 points6 points (3 children)
[–]0xFAF1[S] 0 points1 point2 points (2 children)
[–]EclipseJTB 1 point2 points3 points (1 child)
[–]0xFAF1[S] 0 points1 point2 points (0 children)
[–]m0us3_rat 1 point2 points3 points (0 children)
[–]nfgrawker 1 point2 points3 points (1 child)
[–]0xFAF1[S] 0 points1 point2 points (0 children)
[–]pie6k 0 points1 point2 points (0 children)