Skip to content

refactor lab.py to make the server protocol code portable #68

Description

@ensonic

We'd like to refactor https://github.com/OpenRoberta/robertalab-ev3dev/blob/develop/roberta/lab.py to not import ev3dev and Hal anymore.
Instead when initializing the roberta.lab.Service() we'd like to pass a device module.

The device module will have function such as:

def updateDeviceState():   # set firmware name, update battery status
def notifyConnect():       # eg play a beep, or toggle a led
def notifyDisconnect():
def reset():               # resets actors, sensors
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions