children package

Submodules

children.app module

children.experiment module

class children.experiment.arduino

Bases: object

connect()

Starts a connection to Arduino and keeps it awake.

read()

Reads info from Arduino

send(command, returns=True)

Sends a command to Arduino and waits for a response. If returns is set to True, it will return the response.

Parameters
  • command (str) – Command to send to Arduino.

  • returns (bool) – Whether or not to return a response.

set()

Sends a parameter tuple to Arduino.

children.experiment.decode(lines)

Converts Arduino response to a string.

children.sync module

children.sync.send(data)

Sends directly back to main server without querying the database.

Parameters

data (dict) – Data that will be sent back as JSON.

Module contents