NET - (Remote) API¶
The next module of this small API implementation focuses on the “FsNetRemoteLib.” All nodes presented here were converted from the Java source code of the app “Medion Lifestream 2.”
The script used for converting the code can be found in the repository. The source code was converted to reduce the manual effort, as the final “_nodes.py” file contained more than 4000 lines of code.
When querying a resource or attempting to set a value to a specific node, there is always a status message that accompanies the response. Common possible values for this status are:
Status |
Body |
Description |
---|---|---|
FS_OK |
True |
If everything goes right the status is set to FS_OK |
FS_PACKET_BAD |
False |
This status code will be returned if a value should be applied to a read-only node. |
FS_NODE_BLOCKED |
False |
Sometimes this status is given, maybe because the node was deactivated on the device. |
FS_NODE_DOES_NOT_EXIST |
False |
As the name already states, the requested node is not implemented on that device. |
FS_TIMEOUT |
False |
The device takes too long to respond |
FS_FAIL |
False |
If the parameters given in the url are mot matching the node criteria, the request will fail. |