<filename>common/constant.py<gh_stars>1-10
"""Collection of constants used by OSCAHR.

This module is part of the OSCAHR common package and contains a collection of constants which
multiple components of the OSCAHR embedded scenario use.

Version: 0.6.1
Date: 13.07.2021
Author: <NAME> (IoT-Lab, University of Applied Sciences Upper Austria, <NAME>)
License: MIT
"""

COM_PORT = 42021  # Static OSCAHR communication port
ERROR_RESPONSE = "ERROR"
SUCCESS_RESPONSE = "SUCCESS"
DELIMITER_PARAM = ":"
DELIMITER_END = ";"
LOCAL_COMMANDS = [
    "get_temperature",
    "get_time",
    "activate_remote_access",
    "deactivate_remote_access",
    "delete_onion_service",
    "exit"
]
LOCAL_COMMANDS_TEXT = [
    "Get temperature",
    "Get current time",
    "Activate remote access",
    "Deactivate remote access",
    "Delete Tor Onion Service",
    "Disconnect and back to device menu"
]
REMOTE_COMMANDS = [
    LOCAL_COMMANDS[0],  # Temperature
    LOCAL_COMMANDS[1],  # Time
    LOCAL_COMMANDS[5]   # Exit
]
REMOTE_COMMANDS_TEXT = [
    LOCAL_COMMANDS_TEXT[0],  # Temperature
    LOCAL_COMMANDS_TEXT[1],  # Time
    LOCAL_COMMANDS_TEXT[5]   # Exit
]

<filename>common/constant.py<gh_stars>1-10
"""Collection of constants used by OSCAHR.

This module is part of the OSCAHR common package and contains a collection of constants which
multiple components of the OSCAHR embedded scenario use.

Version: 0.6.1
Date: 13.07.2021
Author: <NAME> (IoT-Lab, University of Applied Sciences Upper Austria, <NAME>)
License: MIT
"""

COM_PORT = 42021  # Static OSCAHR communication port
ERROR_RESPONSE = "ERROR"
SUCCESS_RESPONSE = "SUCCESS"
DELIMITER_PARAM = ":"
DELIMITER_END = ";"
LOCAL_COMMANDS = [
    "get_temperature",
    "get_time",
    "activate_remote_access",
    "deactivate_remote_access",
    "delete_onion_service",
    "exit"
]
LOCAL_COMMANDS_TEXT = [
    "Get temperature",
    "Get current time",
    "Activate remote access",
    "Deactivate remote access",
    "Delete Tor Onion Service",
    "Disconnect and back to device menu"
]
REMOTE_COMMANDS = [
    LOCAL_COMMANDS[0],  # Temperature
    LOCAL_COMMANDS[1],  # Time
    LOCAL_COMMANDS[5]   # Exit
]
REMOTE_COMMANDS_TEXT = [
    LOCAL_COMMANDS_TEXT[0],  # Temperature
    LOCAL_COMMANDS_TEXT[1],  # Time
    LOCAL_COMMANDS_TEXT[5]   # Exit
]

Collection of constants used by OSCAHR.  This module is part of the OSCAHR common package and contains a collection of constants which multiple components of the OSCAHR embedded scenario use.  Version: 0.6.1 Date: 13.07.2021 Author: <NAME> (IoT-Lab, University of Applied Sciences Upper Austria, <NAME>) License: MIT # Static OSCAHR communication port # Temperature # Time # Exit # Temperature # Time # Exit